#ifndef __DDS_H__ #define __DDS_H__ #ifdef __cplusplus extern "C" { #endif #include typedef struct { GLsizei width; GLsizei height; GLint components; GLenum format; int numMipMaps; GLubyte *pixels; } DDS_IMAGE_DATA; int ddsInit(); DDS_IMAGE_DATA* loadDDSTextureFile( const char *filename ); void destroyDDS( DDS_IMAGE_DATA *pDDSImageData ); // returns the OpenGL-generated texture index. int loadCompressedTexture( DDS_IMAGE_DATA *pDDSImageData ); #ifdef __cplusplus } #endif #endif