Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sdds.h
Go to the documentation of this file.
1 #ifndef _SDDS_H_
2 #define _SDDS_H_
3 #include "gfxlib_struct.h"
4 
5 /*
6  * input is the compressed dxt file, already read in by vsimage.
7  * output is an empty pointer created in the calling function.
8  * format is the bit format of the compressed texture (rgba)
9  * height and width are self explanatory
10  *
11  * when function returns, output will contain the uncompressed first mipmap of the dxt image.
12  * the calling function will have to replace the input pointer with the output pointer and set
13  * the texture format to rgba.
14  */
15 
16 void ddsDecompress( unsigned char* &input, unsigned char* &output, TEXTUREFORMAT format, int height, int width );
17 
18 #endif
19