42 #ifndef INCLUDED_DISTI_DDSFILE_H
43 #define INCLUDED_DISTI_DDSFILE_H
49 #ifndef GL_COMPRESSED_RED_RGTC1
50 # define GL_COMPRESSED_RED_RGTC1 0x8DBB
51 # define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
52 # define GL_COMPRESSED_RG_RGTC2 0x8DBD
53 # define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
56 #ifndef GL_COMPRESSED_LUMINANCE_LATC1_EXT
57 # define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
58 # define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
59 # define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
60 # define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
71 GLenum _internalFormat;
75 std::vector<GLubyte> _texels;
82 , _internalFormat( 0 )
90 void DDSInitExtensions();
92 std::shared_ptr<DDSTextureInfo> ReadDDSFile(
const char* filename,
bool loadTexels );
94 GLuint BindDDSTexture(
DDSTextureInfo* texInfo,
unsigned int skipLevels = 0 );
98 #endif // INCLUDED_DISTI_DDSFILE_H
Definition: bmpimage.h:46