mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
30 lines
557 B
C
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
|