| |
|
|
funkheld | Hello, good day. I need once Help for the Program. I set in a OGL-Window one Image 128x128 , which then gedeht becomes. this turned Image set I then in bpic&. bpic& is the eigentliche normal Darstellungsfenster. now would like I, the this OGL-Window not visible is, I need always only the turned Image from it.
How can the OGL-Window vanish let and the the image from it still copies go can ?
If I these Pic always new erschaffe : hPic&=create("HPIC",0,"&OGLBMP") must The jedesmal again in the Loop with : DeleteObject hPic& released go ?
Thank you.
greeting
declare winkel!
declare hWin&,hpic&,bpic&,bpic1&
declare end%,tex.car%
bpic& = create("hNewPic", 400,400,rgb(255,255,0))
bpic1& = create("hNewPic", 400,400,rgb(255,255,0))
ende%=1
Window 20,20-800,600
Cls @RGB(220,220,220)
hWin& = Create("text", %hWnd, "Test1", 10, 10, 128,128)
ShowWindow(hWin&, 1)
oGL("Init", hwin&, 0,0, 0, 0)
oGL("PosMode", 1)
tex.car%=oGL("LoadTextureBMP","auto.bmp",1)
setTimer 20
drawglscene
WHILE end%
WaitInput
if isKey(81)
winkel!=winkel!+1.0
drawglscene
endif
if isKey(69)
winkel!=winkel!-1.0
drawglscene
endif
ENDWHILE
killTimer
end
proc drawglscene
OGL("Clear")
OGL("origin",0,0,-1.11)
OGL("texture",tex.car%,1)
OGL("rotate",0,0,winkel!)
OGL("quad",0.5,0.5)
OGL("show")
StartPaint bPic&
hPic&=create("HPIC",0,"&OGLBMP")
DrawPic bPic1&,0,0;0
DrawPic hPic&, 150,150;-1
DeleteObject hPic&
endpaint
DrawPic bPic&, 300,50;0
endproc
|
|
|
| |
|
|
|
RICOSCH | How would it with the ogl-window outside the physikalischen Bildschirmbereichs ? |
|
|
| |
|
|
|
funkheld | Jup, if I whom OGL-Screen Ausserhalb set, is no Image there.
normal : hWin& = Create("text", %hWnd, "Test1", 10, 10, 128,128)
ausserhalb: hWin& = Create("text", %hWnd, "Test1", 800, 10, 128,128)
Thank you.
greeting |
|
|
| |
|
|
|
| Related: create("HPIC",0,"&OGLBMP")
XProfan Helpfile
"&OGLBMP" - it'll a Bitmapkopie the current OpenGL-Bildschirms prepares.
or. ogl.savebmp(string fle,long x,y,xx,yy) from the oglhelper.inc from the Includes-pkg
the OGL-UI: [...] |
|
|
| |
|
|
|
funkheld | Hmm..., i see not, How I your example now my question supra utilize should? i want my OGL-Window from the Sichtbeeich rausnehmen and wished then from it what copy into Pic mere, which I then with Drawpic on the normalen Screen set.
Thank you.
greeting |
|
|
| |
|
|