#include <Geometry.h>
Public Member Functions | |
Geometry (GLuint baseVertex, GLuint vertexCount, void *baseIndex, GLuint indexCount) | |
virtual | ~Geometry (void) |
Destructor. | |
GLuint | getBaseVertex () |
Get base vertex index. | |
GLuint | getVertexCount () |
Get number of vertices of the geometry. | |
void * | getBaseIndex () |
Get base index of the geometry in the index buffer. | |
GLuint | getIndexCount () |
Get the number of indices that represent the geometry. | |
Protected Attributes | |
GLuint | m_baseVertex |
GLuint | m_vertexCount |
void * | m_baseIndex |
GLuint | m_indexCount |
Implementation of the IGeometry interface.
Definition at line 5 of file Geometry.h.
Geometry::Geometry | ( | GLuint | baseVertex, | |
GLuint | vertexCount, | |||
void * | baseIndex, | |||
GLuint | indexCount | |||
) |
Constructor that defines the areas of the vertex and index buffer which are used for drawing.
Definition at line 3 of file Geometry.cpp.
Geometry::~Geometry | ( | void | ) | [virtual] |
Destructor.
Definition at line 10 of file Geometry.cpp.
void* Geometry::getBaseIndex | ( | ) | [inline] |
Get base index of the geometry in the index buffer.
Definition at line 20 of file Geometry.h.
GLuint Geometry::getBaseVertex | ( | ) | [inline] |
Get base vertex index.
Definition at line 16 of file Geometry.h.
GLuint Geometry::getIndexCount | ( | ) | [inline] |
Get the number of indices that represent the geometry.
Definition at line 22 of file Geometry.h.
GLuint Geometry::getVertexCount | ( | ) | [inline] |
Get number of vertices of the geometry.
Definition at line 18 of file Geometry.h.
void* Geometry::m_baseIndex [protected] |
Definition at line 27 of file Geometry.h.
GLuint Geometry::m_baseVertex [protected] |
Definition at line 25 of file Geometry.h.
GLuint Geometry::m_indexCount [protected] |
Definition at line 28 of file Geometry.h.
GLuint Geometry::m_vertexCount [protected] |
Definition at line 26 of file Geometry.h.