android opengl压缩纹理读入

具体参照 http://developer.android.com/guide/topics/graphics/opengl.html 

Texture compression support


The ETC format is supported by most Android devices

glCompressedTexImage2D

internalformat
....
GL_PALETTE4_RGB5_A1_OES  表示调色板索引4位, 颜色格式是RGB5位, ALPHA 1位

其他格式:
 For Android, this is normal: for 32bpp textures, Tegra(nvidia) supports DDS only, but SGX supports PVR only, etc.

你可能感兴趣的:(android opengl压缩纹理读入)