English
Opportunities and suggestions

bow: & OGLBMP

 
I faith, & OGLBMP not working:
CompileMarkSeparation
CLS 0
showwindow(%hWnd,2)
oGL("Init", %hWnd, 0, 0, 0, 0)
oGL("PosMode", 1)
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")
var hPic&=create("hPic",0,"&OGLBMP")
ogl("done")
cls $FFFFFF
showwindow(%hWnd,1)
drawSizedPic hPic&,0,0 - 320,200;0
waitinput
end
 
02/06/10  
 



&SCRBMP functions in the principle neither, but it comes a Message:
CompileMarkSeparation
CLS 0
showwindow(%hWnd,2)
oGL("Init", %hWnd, 0, 0, 0, 0)
oGL("PosMode", 1)
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")
var hPic&=create("hPic",0,"&SCRBMP")
ogl("done")
cls $FFFFFF
showwindow(%hWnd,1)
drawSizedPic hPic&,0,0 - 320,200;0
waitinput
end

and &SCRBMP gives unfortunately too over the Window liegende pieces from:
CompileMarkSeparation
CLS
var dlg&=create("Dialog",0,"Test",300,300,300,300)
var hPic&=create("HPIC",0,"&SCRBMP")
drawSizedPic hPic&,0,0 - 320,200;0
waitinput
end
- would vlt. a hDC2-copy hilfreicher.
 
02/06/10  
 



the here functions already something rather, is too no ogl.show necessary:
CompileMarkSeparation
 {$cle}
CLS 0
var width&=width(%hWnd)
var height&=height(%hWnd)
oGL("Init", %hWnd, 1, 0, 0, 0)
oGL("PosMode", 1)
oGL("Clear")
oGL("Origin", -1.5, 0, -6.0)
oGL("Triangle", 2, 2)
oGL("Origin", 1.5, 0, -6.0)
ogl("color",0,0,1,1)
oGL("Quad", 2, 2)
var hPic&=create.hPicFromOGL(width&,height&)
ogl("done")
drawSizedPic hPic&,0,(height&-1) - width&,(-height&);0
waitInput
end

proc create.hPicFromOGL

    parameters width&,height&
    var hPic&=create("hNewPic",width&,height&,0)
    var data&=globalAlloc(gPTR,width&*height&*4)
    ogl("glReadPixels",0,0,width&,height&,GL_BGRA,GL_UNSIGNED_BYTE,data&)
    SetBitmapBits(hPic&,width&*height&*4,data&)
    globalFree(data&)
    var hPic2&=create("hNewPic",width&,height&,0)
    startPaint2 hPic2&
    drawSizedPic hPic&,0,(height&-1) - width&,(-height&);0
    endPaint2
    deleteObject hPic&
    return hPic2&

endproc

 
02/07/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.859 Views

Untitledvor 0 min.
H.Brill04/13/14
funkheld02/23/13
RICOSCH07/17/11

Themeninformationen

this Topic has 1 subscriber:

iF (3x)


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