Classes | Typedefs | Functions

src/util/header/TextureData.h File Reference

Go to the source code of this file.

Classes

struct  Pixel
 Structure defining a pixel. More...
struct  MipMap
struct  TextureData

Typedefs

typedef TextureDatapTextureData

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 Documentation

Definition at line 32 of file TextureData.h.


Function Documentation

bool loadBMP ( const wchar filename,
int &  width,
int &  height,
Pixel **  outData 
)

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.

bool loadTGA ( const wchar filename,
int &  width,
int &  height,
Pixel **  outData 
)

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.

uint myShiftRightByMask ( uint  Color,
uint  Mask,
uint  DistributeToBits = 8 
)

Definition at line 240 of file TextureData.cpp.