On Nov 14, 2004, at 4:10 AM, Seth Willits wrote:
And in your article, again,
if I understand what you are trying to say, you write that OpenGL
does not
draw in the bounds of a canvas, only the window. Not true, Nick
Lockwood has
written such an OGL canvas.
Yeah, but I'm not using Nick's canvas am I? In my project it doesn't
do it.
dim bounds as memoryBlock
bounds = newMemoryBlock(16)
bounds.long(0) = theLeft
bounds.long(4) = theWidth
bounds.long(8) = theBottom//relative to the bottom of the window --
theWindow.height - theCanvas.height - theCanvas.top
bounds.long(12) = theHeight
aglEnable(AGL_BUFFER_RECT)
aglSetInteger(AGL_BUFFER_RECT, bounds)
I think that's it anyway.
Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
Make PDFs from your RB app
<http://www.fireyesoftware.com/code/pdfclasses/>
AIM and Yahoo: fireye7517
REALbasic 5.5.3 Mac OS X 10.3.5
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|