开发者

Android: The meaning of the codes returned by GLUtils.getype and getInternalFormat

开发者 https://www.devze.com 2023-04-12 15:11 出处:网络
Where are the meanings the codes returned by GLUtils.getype and getInternalFormat listed? Right now I am getting:

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 ar开发者_JS百科e listed here : http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml


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.

0

精彩评论

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