• 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
Re: NSView into/onto NSOpenGLView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView into/onto NSOpenGLView


  • Subject: Re: NSView into/onto NSOpenGLView
  • From: Shaun Wexler <email@hidden>
  • Date: Mon, 20 Sep 2004 00:16:38 -0700

On Sep 19, 2004, at 11:13 PM, Lorenzo wrote:

I am trying to create a temporary NSView into or onto a NSOpenGLView, but it
doesn't work because the glView over-draws the other NSView all the time.
When I say "onto" I mean that I add the NSView to the window after I added
the NSOpenGLView, so it should appear over the NSOpenGLView, but it doesn't.


So, actually I am forced to display this NSView within a new NSWindow.
Is a way to solve this problem?

Something else you can do is to make it a subview sibling of your GL view, and override its drawRect: so it renders to texture instead of the window backing store, then use glOrtho to place a textured quad atop your GL content, bound to your view. You'll need to synchronize drawing order so the Quartz view draws first, either by wrapping them both with a view, or other methods. Depending on your need for mouse tracking you can disable the GL view or manage hits and forward them to the Quartz view. Makes the separate window seem easier?
--
Shaun Wexler
MacFOH
http://www.macfoh.com


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSView into/onto NSOpenGLView (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: NSView into/onto NSOpenGLView
  • Next by Date: Bezier path for volume editor
  • Previous by thread: Re: NSView into/onto NSOpenGLView
  • Next by thread: Bezier path for volume editor
  • Index(es):
    • Date
    • Thread