Android:GLUtils.getype和getInternalFormat返回的代码的含义

发布于 2024-12-09 19:22:26 字数 429 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

守护在此方 2024-12-16 19:22:26

您链接到 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文