OpenGL Volumizer 2.7 Reference Pages
| vzIndexArray ( | int numIndices, int* indices); |
| void setDataPtr ( | int numIndices, int* indices); |
| int* getDataPtr ( | ) const; |
| int getNumIndices ( | ) const; |
| virtual ~vzIndexArray ( | ); |
| vzIndexArray ( | int numIndices, int* indices); |
| virtual ~vzIndexArray ( | ); |
| int* getDataPtr ( | ) const; |
| int getNumIndices ( | ) const; |
| void setDataPtr ( | int numIndices, int* indices); |
// A function which modifies the index values of an index array.
void modifyIndexValues(vzIndexArray *indices) {
// Get the index values of the array
int *indexValues = indices->getDataPtr();
// Get the number of indices in the array
int numIndices = indices->getNumIndices();
// Modify the value of a particular index
indexValues[someIndex] = someValue;
// Call setDataPtr() to notify the API of the change
indices->setDataPtr(numIndices, indexValues);
}