Android:GLUtils.getype和getInternalFormat返回的代码的含义
GLUtils.getype 和 getInternalFormat 返回的代码的含义在哪里列出?
现在我得到:
内部格式:6407 类型:33635
用于生成此代码的代码如下:
Log.v("GLSurfaceView", "Internal Format "+GLUtils.getInternalFormat(mBitmap)+" Type: "+GLUtils.getType(mBitmap));
此处列出了可用的格式和类型:http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml
Where are the meanings the codes returned by GLUtils.getype and getInternalFormat listed?
Right now I am getting:
Internal Format: 6407
Type: 33635
Code used to generate this is as follows:
Log.v("GLSurfaceView", "Internal Format "+GLUtils.getInternalFormat(mBitmap)+" Type: "+GLUtils.getType(mBitmap));
The formats and types which are available are listed here : http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您链接到 OpenGL 规范,相反,您应该查看 glTexImage2D 中的OpenGL-ES 规范。
您需要的常量在 GL10 类中定义。例如,内部格式 6407 是 GL10.GL_RGB ,并且类型 33635 是 GL10.GL_UNSIGNED_SHORT_5_6_5。
You linked to the OpenGL spec, instead you should look at the glTexImage2D in the OpenGL-ES spec.
The constants you need are defined in the GL10 class. Internal format 6407 is GL10.GL_RGB for example, and type 33635 is GL10.GL_UNSIGNED_SHORT_5_6_5.