Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ParticleSystems::TGALoader Class Reference

The TGALoader Class. More...

#include <TGALoader.h>

List of all members.

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.


Detailed Description

The TGALoader Class.

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.


Constructor & Destructor Documentation

TGALoader::TGALoader  ) 
 

The Constructor.

Constructs a new TGALoader

Definition at line 14 of file TGALoader.cpp.

References cTGAcompare, and uTGAcompare.

TGALoader::~TGALoader  ) 
 

The Destructor.

Destructs a TGALoader

Definition at line 26 of file TGALoader.cpp.


Member Function Documentation

bool TGALoader::LoadCompressedTGA Texture ,
char *  ,
FILE * 
[private]
 

A member function.

Load a Compressed file return true if succesfully loaded.

Parameters:
Texture a pointer to the texture
char a pointer to a char
FILE a pointer to the file to be 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().

bool TGALoader::LoadTGA Texture texture,
char *  filename
 

A member function.

Open and test the file to make sure it is a valid TGA file

Parameters:
texture a pointer to the texture
filename a pointer to the filename

Definition at line 29 of file TGALoader.cpp.

References cTGAcompare, LoadCompressedTGA(), LoadUncompressedTGA(), tgaheader, and uTGAcompare.

Referenced by ParticleSystems::Emitter::Emitter().

bool TGALoader::LoadUncompressedTGA Texture ,
char *  ,
FILE * 
[private]
 

A member function.

Load a Uncompressed file return true if succesfully loaded.

Parameters:
Texture a pointer to the texture
char a pointer to a char
FILE a pointer to the file to be 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().


Member Data Documentation

GLubyte ParticleSystems::TGALoader::cTGAcompare[12]
 

A public variable.

Compressed TGA Header

Definition at line 107 of file TGALoader.h.

Referenced by LoadTGA(), and TGALoader().

TGA ParticleSystems::TGALoader::tga
 

A public variable.

The TGA image data

Definition at line 95 of file TGALoader.h.

Referenced by LoadCompressedTGA(), and LoadUncompressedTGA().

TGAHeader ParticleSystems::TGALoader::tgaheader
 

A public variable.

The TGA header

Definition at line 89 of file TGALoader.h.

Referenced by LoadTGA().

GLubyte ParticleSystems::TGALoader::uTGAcompare[12]
 

A public variable.

Uncompressed TGA Header

Definition at line 101 of file TGALoader.h.

Referenced by LoadTGA(), and TGALoader().


The documentation for this class was generated from the following files:
Generated on Thu Mar 24 11:05:03 2005 for ParticleSystem by  doxygen 1.4.1