#include <TGALoader.h>
Public Member Functions | |
TGALoader () | |
The Constructor. | |
~TGALoader () | |
The Destructor. | |
bool | LoadTGA (Texture *texture, char *filename) |
A member function. | |
Public Attributes | |
TGAHeader | tgaheader |
A public variable. | |
TGA | tga |
A public variable. | |
GLubyte | uTGAcompare [12] |
A public variable. | |
GLubyte | cTGAcompare [12] |
A public variable. | |
Private Member Functions | |
bool | LoadUncompressedTGA (Texture *, char *, FILE *) |
A member function. | |
bool | LoadCompressedTGA (Texture *, char *, FILE *) |
A member function. |
This class enables TGA picture file handeling. It enables loading and binding a TGA image to a texture.
Definition at line 62 of file TGALoader.h.
|
The Constructor. Constructs a new TGALoader Definition at line 14 of file TGALoader.cpp. References cTGAcompare, and uTGAcompare. |
|
The Destructor. Destructs a TGALoader Definition at line 26 of file TGALoader.cpp. |
|
A member function. Load a Compressed file return true if succesfully loaded.
Definition at line 138 of file TGALoader.cpp. References ParticleSystems::TGA::Bpp, ParticleSystems::TGA::bytesPerPixel, ParticleSystems::TGA::header, ParticleSystems::TGA::Height, ParticleSystems::TGA::imageSize, tga, and ParticleSystems::TGA::Width. Referenced by LoadTGA(). |
|
A member function. Open and test the file to make sure it is a valid TGA file
Definition at line 29 of file TGALoader.cpp. References cTGAcompare, LoadCompressedTGA(), LoadUncompressedTGA(), tgaheader, and uTGAcompare. Referenced by ParticleSystems::Emitter::Emitter(). |
|
A member function. Load a Uncompressed file return true if succesfully loaded.
Definition at line 67 of file TGALoader.cpp. References ParticleSystems::TGA::Bpp, ParticleSystems::TGA::bytesPerPixel, ParticleSystems::TGA::header, ParticleSystems::TGA::Height, ParticleSystems::TGA::imageSize, tga, ParticleSystems::TGA::type, and ParticleSystems::TGA::Width. Referenced by LoadTGA(). |
|
A public variable. Compressed TGA Header Definition at line 107 of file TGALoader.h. Referenced by LoadTGA(), and TGALoader(). |
|
A public variable. The TGA image data Definition at line 95 of file TGALoader.h. Referenced by LoadCompressedTGA(), and LoadUncompressedTGA(). |
|
A public variable. The TGA header Definition at line 89 of file TGALoader.h. Referenced by LoadTGA(). |
|
A public variable. Uncompressed TGA Header Definition at line 101 of file TGALoader.h. Referenced by LoadTGA(), and TGALoader(). |