realbasic-games
[Top] [All Lists]

Re: [ResEx] OpenGL in RB

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: [ResEx] OpenGL in RB
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Mon, 15 Nov 2004 20:59:58 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BDBBF0AB dot 58DA%mauitom at maui dot net> <111A3EA8-361D-11D9-AE77-000A95A5E76E at freaksw dot com>

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>

<Prev in Thread] Current Thread [Next in Thread>