#include <OGLParts.h>
Public Member Functions | |
IndexData () | |
~IndexData () | |
void | Init (int *Indices, int iNumIndices) |
Set up the Index buffer using an index array described by Indices. | |
Private Attributes | |
GLuint | mIndexCount |
GLuint * | mIndexData |
Friends | |
void | DrawGeometry (VertexData **vd, string *vsVertexNames, int iNumVertexDatas, IndexData *id, Shader *sShader) |
Draw the Index Data id using the specified vertex data and shader using GL_POINTS. | |
void | DrawGeometrySolid (VertexData **vd, string *vsVertexNames, int iNumVertexDatas, IndexData *id, Shader *sShader, int facecount) |
Draw the Index Data id using the specified vertex data and shader using GL_TRIANGLES. |
This class is used for holding index data. You cannot do much GPGPU with this, it is genearlly just used to hold index data that is to be loaded in on program start.
Definition at line 261 of file OGLParts.h.
IndexData::IndexData | ( | ) | [inline] |
Definition at line 264 of file OGLParts.h.
IndexData::~IndexData | ( | ) |
Definition at line 660 of file OGLParts.cpp.
void IndexData::Init | ( | int * | Indices, | |
int | iNumIndices | |||
) |
Set up the Index buffer using an index array described by Indices.
You must delete indicies yourself. This function does not delete them for you. Also, note that you cannot delete them while this function is using them.
Definition at line 664 of file OGLParts.cpp.
void DrawGeometry | ( | VertexData ** | vd, | |
string * | vsVertexNames, | |||
int | iNumVertexDatas, | |||
IndexData * | id, | |||
Shader * | sShader | |||
) | [friend] |
Draw the Index Data id using the specified vertex data and shader using GL_POINTS.
Definition at line 771 of file OGLParts.cpp.
void DrawGeometrySolid | ( | VertexData ** | vd, | |
string * | vsVertexNames, | |||
int | iNumVertexDatas, | |||
IndexData * | id, | |||
Shader * | sShader, | |||
int | facecount | |||
) | [friend] |
Draw the Index Data id using the specified vertex data and shader using GL_TRIANGLES.
Definition at line 792 of file OGLParts.cpp.
GLuint IndexData::mIndexCount [private] |
Definition at line 272 of file OGLParts.h.
GLuint* IndexData::mIndexData [private] |
Definition at line 273 of file OGLParts.h.