English
Forum

OGL-Window would like I into background settle and then copy.

 

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

 
04/07/12  
 




RICOSCH
How would it with the ogl-window outside the physikalischen Bildschirmbereichs ?
 
XProfan X2
I LOVE TOOLS
04/07/12  
 




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
 
04/07/12  
 



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:  [...] 
 
04/09/12  
 




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
 
04/09/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.114 Views

Untitledvor 0 min.
Michael Klumb04/18/16
H.Brill03/31/15
funkheld01/11/14
RICOSCH11/30/13
More...

Themeninformationen

this Topic has 3 subscriber:

funkheld (3x)
iF (1x)
RICOSCH (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