42 #ifndef INCLUDED_DISTI_DDSFILE_H
43 #define INCLUDED_DISTI_DDSFILE_H
47 #if defined(WIN32) && _MSC_VER > 1600 // Greater than VS 2010
49 #define BOOST_HAS_TR1_SHARED_PTR
51 #include <boost/tr1/memory.hpp>
54 #ifndef GL_COMPRESSED_RED_RGTC1
55 #define GL_COMPRESSED_RED_RGTC1 0x8DBB
56 #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
57 #define GL_COMPRESSED_RG_RGTC2 0x8DBD
58 #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
61 #ifndef GL_COMPRESSED_LUMINANCE_LATC1_EXT
62 #define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
63 #define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
64 #define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
65 #define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
77 GLenum _internalFormat;
84 std::vector<GLubyte> _texels;
98 void DDSInitExtensions();
100 std::tr1::shared_ptr<DDSTextureInfo> ReadDDSFile(
const char *filename,
bool loadTexels);
102 GLuint BindDDSTexture(
DDSTextureInfo *texInfo,
unsigned int skipLevels=0);
106 #endif // INCLUDED_DISTI_DDSFILE_H
Definition: bmpimage.h:46