| |
|
|
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 |
|
|
| |
|
|
|
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 X4Intel 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 ▲ |
|
|
|