Reputation: 19757
How can I efficiently create a CGImageRef from the EAGLView's framebuffer contents using glReadPixels? Perhaps I can "render directly to a texture"?
I'm relatively new to OpenGL ES so any help is much appreciated!
Upvotes: 2
Views: 777
Reputation: 70379
The function glReadPixels
is very expensive... if you want to render to a texture you could take a look at:
For a reference of OpenGL ES on iOS see http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Glossary/Glossary.html
Upvotes: 5