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>
|