lilith3d::Texture Class Reference

#include <texture.h>

List of all members.


Detailed Description

The basic class that encompasses a texture. Always used by the code as a constant pointer. The texture manager holds all the textures. A texture has 2 parts to its name - the string part and the number part. So "snow 0" is a full texture name.


Public Member Functions

const std::string & Name () const
 Query the string part of the texture name.
U32 NameId () const
 Query the number part of the texture name.
void SetTexture (SDL_Surface *surface) const
 Return >0 if this is an emmissive texture - a light.


Member Function Documentation

void lilith3d::Texture::SetTexture ( SDL_Surface *  surface  )  const

Return >0 if this is an emmissive texture - a light.

Copy the surface to the texture. Note this is a const function. Although the texture in hardware changes, this wrapper object does not.


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