Re: Drawing to NSView with OpenGL questions
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