• 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: Drawing to NSView with OpenGL questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing to NSView with OpenGL questions


  • Subject: Re: Drawing to NSView with OpenGL questions
  • From: Erik Buck <email@hidden>
  • Date: Sun, 10 Feb 2008 12:18:27 -0500

It is easy to overlay gl over quartz or quartz over gl, but it's tricky to interleave them. Approaches for overlays include the following samples : <http://developer.apple.com/cgi-bin/search.pl?q=gl+NSView&num=50&site=(samplecode) >


If you must interleave gl and quartz, render quartz drawing into gl textures and draw with gl You are correct that reading back from VRAM is seldom the right solution. Instead of reading your gl images back from the card, write your quartz images to the card and do the mixing there. This sample shows one approach: http://developer.apple.com/samplecode/CocoaGL/listing10.html


Core Animation in Mac OS X 10.5 essentially draws with quartz into gl textures when views are layer backed.
_______________________________________________


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: Drawing to NSView with OpenGL questions
  • Next by Date: self = [super init] debate.
  • Previous by thread: Drawing to NSView with OpenGL questions
  • Next by thread: self = [super init] debate.
  • Index(es):
    • Date
    • Thread