简体   繁体   中英

HOW to read pixel data from screen in android using GLES 3

i am using GLES 3 to create 3D textures and render data in surface view. Is it possible to read this data from the screen/texture some how.

You can read what you've rendered with glReadPixels() , but that tends to be slow.

Depending on what you're trying to do, you may get better results by rendering to an FBO.

You can find some example code in Grafika ; see for example EglSurfaceBase#saveFrame() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM