| |
|
|
Ludger Resing | Hello i'm yet on the try with opengl .now would like I from the opengl Window to a normalen Mainwindow back . here my Expirimente with the menuepunkt Settings would like I again into Mainwindow (not one Dialog-Window) CompileMarkSeparationdeclare beweg%
Proc Menue
appendmenubar 1,"©"
appendmenubar 103,"&Start"
appendmenubar 102,"&Stop"
appendmenubar 202,"&Einstellungen"
appendmenubar 303,"&Ende"
POPUP "Help"
APPENDMENU 401,"Hilfe"
APPENDMENU 402,"Info"
Separator
APPENDMENU 403,"Über"
endproc
proc start
windowstyle 31
Window 1,1-1100,800
menue
beweg%=1
endproc
PROC zuEnde
MessageBox "Wollen Sie wirklich beenden?",
"Frage:",36
if %Button = 6
Let Ende%=1
endif
ENDPROC
Proc Einstell
oGL("Clear")
windowstyle 31
Window 1,1-1100,800
CLS 0
waitkey
endproc
declare time&, frames%
declare rtri!, rquad!
proc DrawGLScene
oGL("Clear")
oGL("Origin", -1.5, 0, -6)
oGL("Color", 0, 0, 1, 1)
oGL("Rotate", 0, rtri!, 0)
oGL("Cuboid", 2, 2, 1)
oGL("Origin", 1.5, 0, -6)
oGL("Color", 1, 0, 0, 1)
oGL("Rotate", rquad!, 0, 0)
oGL("Cylinder", 1.1, 1.25, 3, 38)
oGL("Show")
case beweg% = 1 :rtri! = rtri! + 9
case beweg% = 1 :rquad! = rquad! - 5
endproc
Hauptprogramm
-------------
start
declare ende%
time& = &GetTickCount
CLS 0
oGL("Init", %hWnd, 0, 0, 0, 1)
oGL("PosMode", 1)
DrawGLScene()
setTimer 20 max 50 Frames /sek.
WhileNot ende%
WaitInput
if isKey(27)
ende% = 1
endif
DrawGLScene()
inc frames%
if &GetTickCount - time& >= 1000 1 Sekunde ist rum
setText %hWnd, str$(frames%) + " Frames/sek"
time& = &GetTickCount
frames% = 0
ElseIf @MenuItem(102)
beweg% = 0
ElseIf @MenuItem(103)
beweg% = 1
ElseIf @MenuItem(303)
zuEnde
ElseIf @MenuItem(202)
einstell
endif
EndWhile
killTimer
end
|
|
|
| |
|
|
|
| Hello Ludger,
i'd with ogl.done the Ogl again turn off, mean You something like? |
|
|
| |
|
|
|
Ludger Resing | first time best Thanks for speedy response with ogl("done") Have I time with rumgespielt ,komm but neither moreover ,How come I again in a normalen Mainwindow.Have in Proc "einstell" with "Window 1,1-1100,800 CLS 0" attempts comes no new Mainwindow Greeting Ludger |
|
|
| |
|
|
|
| Perhaps. have I the trouble not so integrally understood, what very want You achieve?
At the latest z.B. to one CLS to one ogl.done is the Mainwindow imho again "normal" To use. |
|
|
| |
|
|
|
| look time, something like? CompileMarkSeparationcls
ogl("init",%hWnd,0,1,1,1,1)
ogl("posmode",1)
whileLoop 180
ogl("clear")
ogl("move",0,0,-5)
ogl("rotate",&loop,&loop*3,&loop*7)
ogl("cuboid",1,1,1)
ogl("show")
sleep 20
wend
ogl("done")
cls $FF0000
var a&=create("button",%hWnd,"oO",10,10,100,100)
waitinput
end
|
|
|
| |
|
|
|
Ludger Resing | my trouble is ,that by me to the CLS to one ogl.done the Mainwindow not "normal" To use is .i don't know Why.i want Namely no Button produce, but in Mainwindow go on.with your small example (if I whom Button weglasse )comes the Mainwindow !! In my example not |
|
|
| |
|
|
|
Jörg Sellmeyer | 1. have You nirgends ogl("done") in Your code stand. you mußt means in Proc Einstell the install.
2. must You too for this drop one Flag settle, so that DrawGLScene only then carryed out becomes, unless The Settings erfolgen should. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 07/23/09 ▲ |
|
|
|
|
Ludger Resing | Hello Jörg best Thanks point 2 was the right Tipp . ogl("done") I had hereafter installed, but not again whom quelltext tuned now works Greeting Ludger |
|
|
| |
|
|
|
| How called (really) such "Fehler" which even z.B. no Sytaktischen are, separate? (Gibts there not too _ein word for?)
Logischer Error in the Programmablauf?!
LOFIP |
|
|
| |
|
|
|
Jörg Sellmeyer | A.u.s.s.E.T.Z.it Allgemeines Unvermögen systematische Sachverhalte discernible terminierend To erfassen |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 07/23/09 ▲ |
|
|
|
|
| your fancy be I do not grown. |
|
|
| |
|
|
|
E.T. | |
|
| Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 07/23/09 ▲ |
|
|
|