I found some ways to speed up glReadPixels by OpenGL ES 3.0, but I am not sure if it works or not.
- specifies the fifth argument of glReadPixels() as GL_BGRA to avoid unnecessary swizzle.
- use PBO as this mentioned.
In order to verify, I updated to the latest Android SDK and ADT, and try to use OpenGL ES 3.0. However, I can't find GL_BGRA
definition as I expected, and I don't know how to use glMapBuffer()
. Am I missing something?
To summarize,
- Is there any other faster way to access framebuffer than using glReadPixels() ?
- How to use GL_BGRA and PBO by OpenGL ES 3.0 on Android?
If anyone knows, please point me out. Some code snippets would be better. Thanks in advance.