WallCell Class Reference

#include <WallCell.h>

Inheritance diagram for WallCell:

Inheritance graph
[legend]
Collaboration diagram for WallCell:

Collaboration graph
[legend]

Public Member Functions

 WallCell ()
 Empty Constructor.
virtual ~WallCell ()
 Empty Destructor.
virtual void draw ()
 Draw the cell content with OpenGL.

Protected Member Functions

virtual GLuint getTexName ()
 Return the Cell texture id.

Static Protected Attributes

static GLuint _tex_name = 0

Detailed Description

< Another brick in the wall

Definition at line 33 of file WallCell.h.


Member Function Documentation

GLuint WallCell::getTexName (  )  [protected, virtual]

Return the Cell texture id.

Returns:
the value of _tex_name

Reimplemented from Cell.

Definition at line 34 of file WallCell.cpp.

References _tex_name, and Image::genTexture2D().

Referenced by draw().

00034                             {
00035   if(_tex_name == 0) {
00036     Image texture("./textures/WallCell.bmp");
00037     _tex_name = texture.genTexture2D();
00038   }
00039 
00040   return _tex_name;
00041 }

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

GLuint WallCell::_tex_name = 0 [static, protected]

the texture id for Cell rendering

Reimplemented from Cell.

Definition at line 38 of file WallCell.h.

Referenced by getTexName().


The documentation for this class was generated from the following files:
Generated on Sat Feb 2 22:23:26 2008 for Teapot Colony Wars by  doxygen 1.5.4