#include "../pch.h"
Go to the source code of this file.
Classes | |
struct | BMP_SIGNATURE |
struct | BITMAP_FILEHEADER |
struct | BITMAP_HEADER |
struct | RGBA |
struct | BGRA |
struct | BGR |
struct | BGR16 |
Defines | |
#define | BITMAP_FILEHEADER_SIZE 14 |
#define | SAVEEXIT(rs) |
#define | CHECK(_b) if(_b){fclose(file);return false;} |
Functions | |
bool | loadUnknown (const wchar *filename, int &width, int &height, Pixel **outData) |
bool | loadTextureData (const wchar *colorFilename, const wchar *normalFilename, const wchar *heightFilename, TextureData &out) |
uint | myShiftRightByMask (uint Color, uint Mask, uint DistributeToBits) |
bool | loadBMP (const wchar *filename, int &width, int &height, Pixel **outData) |
Load a BMP file. | |
bool | myLoadUncompressedTGA (int &width, int &height, Pixel **outData, FILE *datei) |
bool | myLoadCompressedTGA (int &width, int &height, Pixel **outData, FILE *datei) |
bool | loadTGA (const wchar *filename, int &width, int &height, Pixel **outData) |
Load a TGA file. | |
Variables | |
const BMP_SIGNATURE | bmpSignature |
const unsigned short int | BITMAP_SIGNATURE = bmpSignature.s |
#define BITMAP_FILEHEADER_SIZE 14 |
Definition at line 188 of file TextureData.cpp.
#define CHECK | ( | _b | ) | if(_b){fclose(file);return false;} |
#define SAVEEXIT | ( | rs | ) |
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.
Definition at line 21 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.
Definition at line 240 of file TextureData.cpp.
const unsigned short int BITMAP_SIGNATURE = bmpSignature.s |
Definition at line 179 of file TextureData.cpp.
const BMP_SIGNATURE bmpSignature |
Definition at line 178 of file TextureData.cpp.