#include <GLGeometry.h>
Inheritance diagram for GLGeometry:

This represents anything that can be rendered in the world. Traditionally this would be a triangle mesh, or a particle system.
Definition at line 56 of file GLGeometry.h.
Public Member Functions | |
| virtual int | endRenderID () const=0 |
| Clean up this type of object. | |
| virtual int | initRenderID () const=0 |
| Set up this type of object. | |
| GLMaterial & | material () |
| const GLMaterial & | material () const |
| Get the material. | |
| const char * | name () const |
| Get the name. | |
| virtual int | render (const GLShader *shader) const =0 |
| Render the geometry. | |
| virtual GLRENDERID | renderID () const=0 |
| Return the rendering index of the type. | |
| void | setTexture (uint slot, GLTexture *texture) |
| Set the texture. | |
| const GLTexture * | texture (uint slot) const |
| Get the texture. | |
| virtual const GLVertex * | vertexBufferData () const=0 |
| Get the pointer to the vertex data. | |
| virtual size_t | vertexBufferStride () const=0 |
| Get the stride for the vertex data. | |
Static Public Member Functions | |
| static uint | TextureSlots () |
| Return the number of textures. | |
Protected Member Functions | |
| GLGeometry (const char *name) | |
| Constructor. | |
| virtual | ~GLGeometry () |
| Destructor. | |
Protected Attributes | |
| GLMaterial | m_Material |
| The material. | |
| std::string | m_Name |
| The name. | |
| GLTexture * | m_textures [GLGEOMETRY_TEXTURE_COUNT] |
| The textures. | |
| virtual GLRENDERID GLGeometry::renderID | ( | ) | const [pure virtual] |
Return the rendering index of the type.
This allows the program to separate each type of object in rendering, and also determines what order objects are rendered in.
Implemented in GLMesh.
Referenced by Logic::initRenderID().
1.5.1-p1