| |
|
|
![funkheld: 07.04.2012](.././../../i/a/noavatar.gif) funkheld | allô, guten journée. il me faut einmal Aider pour cela Programme. je mets dans einem OGL-la fenêtre un Bild 128x128 , welches ensuite gedeht wird. cet gedrehte Bild mets je ensuite dans bpic&. bpic& ist cela eigentliche normale Darstellungsfenster. eh bien voudrais je, cela cet OGL-la fenêtre pas sichtbar ist, il me faut toujours seulement cela gedrehte Bild daraus.
comment peux on cela OGL-la fenêtre verschwinden laisser et cela cela Bild daraus toujours kopiert volonté peux ?
si je cet Pic toujours récente erschaffe : hPic&=create(«PCSI»,0,"&OGLBMP") muss qui chaque fois wieder dans qui Boucle avec : DeleteObject hPic& freigegeben volonté ?
merci.
Gruss
declare winkel!
declare hWin&,hpic&,bpic&,bpic1&
declare ende%,tex.voiture%
bpic& = create("hNewPic", 400,400,rgb(255,255,0))
bpic1& = create("hNewPic", 400,400,rgb(255,255,0))
ende%=1
Fenêtre 20,20-800,600
Cls @RGB(220,220,220)
hWin& = Créer("text", %hWnd, "Test1", 10, 10, 128,128)
ShowWindow(hWin&, 1)
oGL("Init", hwin&, 0,0, 0, 0)
oGL("PosMode", 1)
tex.voiture%=oGL("LoadTextureBMP","auto.bmp",1)
setTimer 20
drawglscene
WHILE ende%
WaitInput
si isKey(81)
winkel!=winkel!+1.0
drawglscene
endif
si isKey(69)
winkel!=winkel!-1.0
drawglscene
endif
ENDWHILE
killTimer
end
proc drawglscene
OGL("Clear")
OGL("origin",0,0,-1.11)
OGL("texture",tex.voiture%,1)
OGL("rotate",0,0,winkel!)
OGL("quad",0.5,0.5)
OGL("show")
Début de peinture bPic&
hPic&=create(«PCSI»,0,"&OGLBMP")
DrawPic bPic1&,0,0;0
DrawPic hPic&, 150,150;-1
DeleteObject hPic&
endpaint
DrawPic bPic&, 300,50;0
endproc
|
|
|
| |
|
|
|
![RICOSCH: 07.04.2012](.././../../i/a/2274.gif) RICOSCH | comment wär es avec dem ogl-la fenêtre auserhalb des physikalischen Bildschirmbereichs ? |
|
|
| |
|
|
|
![funkheld: 07.04.2012](.././../../i/a/noavatar.gif) funkheld | Jup, si Je l' OGL-Screen Ausserhalb mets, ist ne...aucune Bild là.
normal : hWin& = Créer("text", %hWnd, "Test1", 10, 10, 128,128)
ausserhalb: hWin& = Créer("text", %hWnd, "Test1", 800, 10, 128,128)
merci.
Gruss |
|
|
| |
|
|
|
![iF: 09.04.2012](.././../../i/a/1.gif) | Siehe aussi: create(«PCSI»,0,"&OGLBMP")
XProfan Hilfedatei
"&OGLBMP" - Es wird une Bitmapkopie des aktuellen OpenGL-Bildschirms erstellt.
bzw. ogl.savebmp(string fle,long x,y,xx,yy) aus qui oglhelper.inc aus dem Comprend-paquet
qui OGL-L'assurance-chômage: [...] ![](/intl/i/lnk.gif) |
|
|
| |
|
|
|
![funkheld: 09.04.2012](.././../../i/a/noavatar.gif) funkheld | Hmm..., je comprends es pas, comment je dein Beispiel maintenant sur mon Frage dessus anwenden soll? je voudrais mon OGL-la fenêtre aus dem Sichtbeeich rausnehmen et voulais ensuite daraus quoi kopieren dans un Pic rein, welches je ensuite avec Drawpic sur den normalen Screen mets.
merci.
Gruss |
|
|
| |
|
|