opengl-es-2.0

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

十年热恋 提交于 2019-11-26 00:35:21
问题 Is there any faster way to access the frame buffer than using glReadPixels? I would need read-only access to a small rectangular rendering area in the frame buffer to process the data further in CPU. Performance is important because I have to perform this operation repeatedly. I have searched the web and found some approach like using Pixel Buffer Object and glMapBuffer but it seems that OpenGL ES 2.0 does not support them. 回答1: As of iOS 5.0, there is now a faster way to grab data from