From 59020e3e3dfd98c3619100934d83272287597a37 Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 7 Aug 2007 09:11:00 +0000 Subject: Modifing a bit the DDS interface - may be useful for texture caching. --- include/dds.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/dds.h b/include/dds.h index 417c755..8339cb0 100644 --- a/include/dds.h +++ b/include/dds.h @@ -5,10 +5,24 @@ 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( const char *fname, int * width, int * height ); +int loadCompressedTexture( DDS_IMAGE_DATA *pDDSImageData ); #ifdef __cplusplus } -- cgit v1.2.3