[英]How to use OpenGL ES 2.0 extensions from java in Android?
I am trying to get to the PVRTC extension to load compressed textures in my game. 我正在尝试使用PVRTC扩展程序在我的游戏中加载压缩纹理。 I know that this extension is supported on many devices but what I can't find is how can I query for it and use it in my application.
我知道许多设备都支持此扩展,但是我找不到如何查询并在应用程序中使用它。 I see that OpenGL ES 1.0 and 1.1 both have Ext classes but I can't find it for the OpenGL ES 2.0.
我看到OpenGL ES 1.0和1.1都具有Ext类,但是在OpenGL ES 2.0中找不到它。 Any ideas about how can I load a compressed PVR texture from Java?
关于如何从Java加载压缩的PVR纹理的任何想法?
The ICS source contains the ES 2 extension header file from Khronos at various places, one is ICS/frameworks/base/opengl/include/GLES2
. ICS源包含Khronos各地的ES 2扩展头文件,其中一个是
ICS/frameworks/base/opengl/include/GLES2
。 Perhaps it is possible to create a small JNI binding to these functions. 也许可以为这些功能创建一个小的JNI绑定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.