realbasic-nug
[Top] [All Lists]

Re: OpenGL context in a Container Control?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: OpenGL context in a Container Control?
From: Frank Condello <developer at chaoticbox dot com>
Date: Fri, 29 Jun 2007 14:03:49 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <FF6AEBC8-9ACC-4446-97C8-15623587B364 at xochi dot com>
On 29-Jun-07, at 12:16 PM, Michael Diehr wrote:

> I'm having no luck attaching an OpenGL context to a container control
> and having it display, under OS X 10.4.x.
> I get no errors, but also nothing shows up onscreen.   I've found a
> work-around which is to attach the GL context to the window that the
> container control is on, and then adjust the top and left coordinates
> appropriately, but this is not ideal since I then have to manually
> take care of showing/hiding the GL context.

That's not surprising - Apple wraps up OpenGL into a higher-level  
view for Cocoa, but AFAIK in Carbon you can only attach a context to  
a window's CGrafPtr (or an offscreen pixmap, but that's generally not  
at all useful).

Frank.
<http://developer.chaoticbox.com/>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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