Passing an opengl texture handle from Android Java to C++?
On Android, is it possible to create a texture in Java and pass its texture id/handle over thro开发者_JS百科ugh JNI to a C++ based 3d rendering engine?
The texture identifier to OpenGL is just an integer. That must be interpreted in the context of a particular OpenGL client, so as long as the C++ and Java code are both operating as one client (with all OpenGL calls on a single thread) it should be possible.
精彩评论