Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我了解,将纹理发送到 OGLES2 是使用 完成的GLUtils.texImage2D,即我将纹理上传到 GPU。那么如何将其发送回 Android(从 GPU 下载)?
GLUtils.texImage2D
谢谢!
显然使用glReadPixels,例如:
glReadPixels
GLES20.glReadPixels(0, 0, mFboWidth, mFboHeight, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, mPixels);