#include <InfiniteFood.h>


Public Member Functions | |
| InfiniteFood (unsigned int max) | |
| Constructor. | |
| virtual | ~InfiniteFood () |
| Empty Destructor. | |
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 InfiniteFood.h.
| InfiniteFood::InfiniteFood | ( | unsigned int | max | ) |
Constructor.
| max | the max amount of food the Cell can contain |
Definition at line 40 of file InfiniteFood.cpp.
00040 : 00041 FoodCell(max, max, max) { 00042 00043 }
| GLuint InfiniteFood::getTexName | ( | ) | [protected, virtual] |
Return the Cell texture id.
Reimplemented from Cell.
Definition at line 31 of file InfiniteFood.cpp.
References _tex_name, and Image::genTexture2D().
00031 { 00032 if(_tex_name == 0) { 00033 Image texture("./textures/InfiniteFood.bmp"); 00034 _tex_name = texture.genTexture2D(); 00035 } 00036 00037 return _tex_name; 00038 }

GLuint InfiniteFood::_tex_name = 0 [static, protected] |
the texture id for Cell rendering
Reimplemented from Cell.
Definition at line 38 of file InfiniteFood.h.
Referenced by getTexName().
1.5.4