Eaagles::MovingMap::TextureObject Class Reference

Inherits Eaagles::Basic::LcObject.

Inheritance diagram for Eaagles::MovingMap::TextureObject:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::MovingMap::TextureObject:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextureObject ()
virtual void setParameters (const TexImage2DParam &aParam, GLint aEnvMode=GL_REPLACE, TexturePalette *aPalette=0)
void redefine (const TexImage2DParam &aParam, GLint aEnvMode=GL_REPLACE, TexturePalette *aPalette=0)
void Bind ()
bool hasTexName ()

Static Public Member Functions

static void preDisplay ()
static void postDisplay ()

Private Attributes

TexImage2DParam param
TexturePalettepalette
GLint envMode
GLuint texName

Classes

struct  TexImage2DParam

Constructor & Destructor Documentation

Eaagles::MovingMap::TextureObject::TextureObject (  ) 

Constructor. Initializes parameters such as texture name, palette and mode.


Member Function Documentation

void Eaagles::MovingMap::TextureObject::setParameters ( const TexImage2DParam aParam,
GLint  aEnvMode = GL_REPLACE,
TexturePalette aPalette = 0 
) [virtual]

Calls the redefine method.

void Eaagles::MovingMap::TextureObject::redefine ( const TexImage2DParam aParam,
GLint  aEnvMode = GL_REPLACE,
TexturePalette aPalette = 0 
)

Resets the parameters.

void Eaagles::MovingMap::TextureObject::Bind (  ) 

Binds the texture object.

void Eaagles::MovingMap::TextureObject::preDisplay (  )  [static]

Enables GL_TEXTURE_2D to draw textured triangles/quads.

void Eaagles::MovingMap::TextureObject::postDisplay (  )  [static]

Calls glDisable(GL_TEXTURE_2D).

bool Eaagles::MovingMap::TextureObject::hasTexName (  )  [inline]

Returns true if the texture name is not null else returns false.


Member Data Documentation

TexImage2DParam Eaagles::MovingMap::TextureObject::param [private]

TexturePalette* Eaagles::MovingMap::TextureObject::palette [private]

GLint Eaagles::MovingMap::TextureObject::envMode [private]

GLuint Eaagles::MovingMap::TextureObject::texName [private]


Generated on Tue Dec 19 16:27:31 2006 for Eaagles by  doxygen 1.5.0