CPPGPGPU Library - Reference (Doxygen)

Main Page | General Use | Reference | Examples Info | Get/Download CPPGPGPU | SF.net Page

IndexData Class Reference

Index Data. More...

#include <OGLParts.h>

List of all members.

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.


Detailed Description

Index Data.

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.


Constructor & Destructor Documentation

IndexData::IndexData (  )  [inline]

Definition at line 264 of file OGLParts.h.

IndexData::~IndexData (  ) 

Definition at line 660 of file OGLParts.cpp.


Member Function Documentation

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.


Friends And Related Function Documentation

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.


Member Data Documentation

GLuint IndexData::mIndexCount [private]

Definition at line 272 of file OGLParts.h.

GLuint* IndexData::mIndexData [private]

Definition at line 273 of file OGLParts.h.


The documentation for this class was generated from the following files:
© 2005-2007 Charles Lohr, Joshua Allen, David Chapman, Andrew Lohr. All material including documentation under the MIT/X11 license.