NSOpenGLView and NSOpenGLContext, view size?
NSOpenGLView and NSOpenGLContext, view size?
- Subject: NSOpenGLView and NSOpenGLContext, view size?
- From: Jacob Juul Kolding <email@hidden>
- Date: Wed, 25 Nov 2009 21:33:18 +0100
- Resent-date: Wed, 25 Nov 2009 21:34:33 +0100
- Resent-from: Jacob Juul Kolding <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa Dev <email@hidden>
Hello
I'm currently trying to wrap my head around an OS X port of GtkGLExt which is a Gtk+ lib that enables OpenGL rendering for a Gtk+ widget.
The lib uses NSOpenGLView and NSOpenGLContext and It sort of works meaning that you CAN render OpenGL BUT,
the entire windows is filled with background color covering all non-OpenGL Gtk+ widgets in the window.
I cant figure out if its because the context gets its "frame/bounds/rect//don't know the phrase" from NSWindow and not NSView?
So my question is how you set the coordinates/width/height for a NSOpenGLView/Context, and
how to update them if the view is resized?
/Regards
Jacob Kolding
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden