Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing back buffer



>> Is there any hack to get the ptr and rowbytes to the OpenGL back
>> buffer?
>
> Typically, the back buffer is not even in memory you can access.

You're right: I always forget about memory protection: my app won't have
direct access to VRAM anyway...

> You
> can get/set the buffer using Read/DrawPixels(), but depending on what
> you want, this will probably be too slow. ReadPixels() is mostly used
> for screenshots. What you should do very much depends on what effect
> you're trying to achieve...?

I was just thinking about performing some operations on the pixels without
using glReadPixels() and glWritePixels() which are truly slow, but let's
forget it :/


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Palo Alto, USA http://www.pol-online.net
_______________________________________________
mac-opengl mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-opengl
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Accessing back buffer (From: Timothy Wayper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.