• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOpenGLView and NSOpenGLContext, view size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: show selected image in a segmented control
  • Next by Date: How to remove all objects from a NSTreeController ?
  • Previous by thread: Re: Core Data - any way to back it with something other than SQLite 3?
  • Next by thread: How to remove all objects from a NSTreeController ?
  • Index(es):
    • Date
    • Thread