Files
maszyna/TextureDDS.h
2015-04-03 22:10:22 +08:00

30 lines
557 B
C

#ifndef TEXTURE_DDS_H
#define TEXTURE_DDS_H 1
#include "opengl/glew.h"
#pragma hdrstop
struct Color8888
{
GLubyte r; // change the order of names to change the
GLubyte g; // order of the output ARGB or BGRA, etc...
GLubyte b; // Last one is MSB, 1st is LSB.
GLubyte a;
};
struct DDS_IMAGE_DATA
{
GLsizei width;
GLsizei height;
GLint components;
GLenum format;
GLuint blockSize;
int numMipMaps;
GLubyte *pixels;
};
void DecompressDXT(DDS_IMAGE_DATA lImage, const GLubyte *lCompData, GLubyte *Data);
#endif