English
Forum

Glubbfan's ask

 

Glubbfan
Hello XProfan / FreeProfan Community,
I have already to längerer Time started in FreeProfan to program.
recently have I then in the Helpfile To XProfan X4 whom OpenGL course discover and I it me time something accurate angeschaut.
thereby has already with the first Lesson (or. the second) a question in my head slunk.
the Listing is Yes the following:
proc DrawGLScene

    oGL("Clear")
    oGL("Origin", -1.5, 0, -6.0)
    oGL("Triangle", 2, 2)
    oGL("Origin", 1.5, 0, -6.0)
    oGL("Quad", 2, 2)
    oGL("Show")

endproc

' Hauptprogramm
' -------------
declare end%
CLS 0
oGL("Init", %hWnd, 0, 0, 0, 0)
oGL("PosMode", 1)
DrawGLScene()
ende% = 0

WhileNot end%

    WaitInput

    if %key = 27

        end% = 1

    elseif %key = 4

        DrawGLScene()

    endif

EndWhile

end

I have however not understood, Why DrawGLScene() twice called go must (once reicht still, or?) and How I to the if Statement in the Loop weiterprogrammieren should, means whether I to the if whom code weiterschreibe or in the elseif.
can me there someone help?

Regards Glubbfan
 
06/21/21  
 




RGH
the first DrawGKScene standing there, so The scene too displayed becomes, before You, the Window verkleinerst or vergrößerst (%key = 4). If you The Size the Fensters änderst, must The scene new showing.

How You further Programmaktionen hinzufügst, show The further course-pieces. there's everything drin, To there running through 3D-worlds. means simply first time whom kompletten course durcharbeiten.

And if ask are, is here the right place.

Greeting
Roland
 
XProfan X4
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/21/21  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.797 Views

Untitledvor 0 min.
H.Brill08/03/23
p.specht06/16/22
Member 361000504/07/22
Klaus Kohlhepp01/23/22
More...

Themeninformationen

this Topic has 2 subscriber:

RGH (1x)
Glubbfan (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie