open class Etc2Texture : ACompressedTexture
open class Etc2Texture : ACompressedTexture
Rajawali container for an ETC2 texture. Due to the nature of ETC2 textures, you may also use this to load an ETC1 texture. The following GL internal formats are supported: - GLES11Ext#GL_ETC1_RGB8_OES
- GLES30#GL_COMPRESSED_RGB8_ETC2
- GLES30#GL_COMPRESSED_RGBA8_ETC2_EAC
- GLES30#GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
- GLES30#GL_COMPRESSED_R11_EAC
- GLES30#GL_COMPRESSED_RG11_EAC
- GLES30#GL_COMPRESSED_SIGNED_R11_EAC
- GLES30#GL_COMPRESSED_SIGNED_RG11_EAC
In theory, the sRGB types GLES30#GL_COMPRESSED_SRGB8_ETC2
, GLES30#GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
, and GLES30#GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
are also supported, but they will currently fail the header check because no source was available to determine their internal type codes. //TODO: Find internal type codes for sRGB formats.
Author
Jared Woolston (jwoolston@tenkiv.com)