#include <WallCell.h>
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 |
Definition at line 33 of file WallCell.h.
GLuint WallCell::getTexName | ( | ) | [protected, virtual] |
Return the Cell texture id.
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 }
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().