开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜