lilith3d::TextureManager Class Reference

#include <texture.h>

List of all members.


Detailed Description

The storage class for all the textures. All textures are loaded to this class, and queried from it later.


Public Member Functions

void SetImportPath (const std::string &path)
 Set a relative or absolute path the will be appended to *all* future load calls.
bool LoadRequiredTextures ()
 Load all the required textures.
bool UseHighQuality ()
 The texture managers guess: should "high quality" modes be used for rendering?
const TextureLoadTexture (const std::string &fileName, const std::string &textureName, int id=0, int flags=0)
const TextureCreateTexture (SDL_Surface *, const std::string &textureName, int id, int options)
const TextureCreateTexture (int size, const std::string &textureName, int id, int options)
const TextureGetTexture (const std::string &textureName, U32 nameId)
 Query for a texture.
unsigned TextureMemory ()
 Query the amount of memory commited to texture use. (Approximate).

Static Public Member Functions

static TextureManagerInstance ()
 Query the instance of the TextureManager singleton.


Member Function Documentation

const Texture* lilith3d::TextureManager::LoadTexture ( const std::string &  fileName,
const std::string &  textureName,
int  id = 0,
int  flags = 0 
)

Loads a single 2D textures, with all the options.

Parameters:
fileName Filename of the texture
textureName String part of the texture name.
id Integer part of the name. (Usually 0).
flags NO_MIPMAP, EMITS_LIGHT

const Texture* lilith3d::TextureManager::CreateTexture ( SDL_Surface *  ,
const std::string &  textureName,
int  id,
int  options 
)

Creates a texture from an SDL surface.

const Texture* lilith3d::TextureManager::CreateTexture ( int  size,
const std::string &  textureName,
int  id,
int  options 
)

Creates a texture that will be set from a surface later.


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:29 2007 for Lilith3D by  doxygen 1.5.1-p1