android opengl压缩纹理读入

来源:互联网 发布:酒店网络营销策划 编辑:程序博客网 时间:2024/05/17 07:58

具体参照 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.