Propane::Image::Loader Class Reference

Multiformat, endian-independent image loader. More...

#include <PropaneImage.h>

List of all members.

Public Member Functions

 Loader ()
GLuint * loadImage (const std::string &path)


Detailed Description

Multiformat, endian-independent image loader.


Constructor & Destructor Documentation

Loader::Loader  ) 
 

Basic constructor for the loader, with shouldAlphaKey disabled.


Member Function Documentation

GLuint * Loader::loadImage const std::string &  path  ) 
 

Loads an image from file, and returns it as a pointer to a GL handle of the loaded texture. Supports any image format supported by SDL_image, and is endian independent.

Parameters:
path The filename to load from (e.g. "data/sprites/mysprite.tga")
Returns:
The pointer to a GL handle of the loaded texture, or NULL if there was a problem. Errors are generally dumped to stderr.


The documentation for this class was generated from the following files:
Generated on Sun Jan 14 16:49:12 2007 for Propane Injector by  doxygen 1.4.6