Go to the source code of this file.
Classes | |
struct | Pixel |
Structure defining a pixel. More... | |
struct | MipMap |
struct | TextureData |
Typedefs | |
typedef TextureData * | pTextureData |
Functions | |
bool | loadTextureData (const wchar *colorFilename, const wchar *normalFilename, const wchar *heightFilename, TextureData &out) |
bool | loadTGA (const wchar *filename, int &width, int &height, Pixel **outData) |
Load a TGA file. | |
bool | loadBMP (const wchar *filename, int &width, int &height, Pixel **outData) |
Load a BMP file. | |
uint | myShiftRightByMask (uint Color, uint Mask, uint DistributeToBits=8) |
bool | myLoadUncompressedTGA (int &width, int &height, Pixel **outData, FILE *datei) |
bool | myLoadCompressedTGA (int &width, int &height, Pixel **outData, FILE *datei) |
typedef TextureData* pTextureData |
Definition at line 32 of file TextureData.h.
Load a BMP file.
Definition at line 275 of file TextureData.cpp.
bool loadTextureData | ( | const wchar * | colorFilename, | |
const wchar * | normalFilename, | |||
const wchar * | heightFilename, | |||
TextureData & | out | |||
) |
Load a texture from a file. This function combines a color, a normal, and a heigh map into a texture, which contains a color and a detail mip map array.
Definition at line 39 of file TextureData.cpp.
Load a TGA file.
Definition at line 692 of file TextureData.cpp.
bool myLoadCompressedTGA | ( | int & | width, | |
int & | height, | |||
Pixel ** | outData, | |||
FILE * | datei | |||
) |
Definition at line 567 of file TextureData.cpp.
bool myLoadUncompressedTGA | ( | int & | width, | |
int & | height, | |||
Pixel ** | outData, | |||
FILE * | datei | |||
) |
Definition at line 524 of file TextureData.cpp.