Eidolon
Public Member Functions | Private Attributes | List of all members
MatrixIndexBuffer Class Reference

Implementation of a IndexBuffer which uses matrices for storage, like MatrixVertexBuffer. More...

#include <RenderTypes.h>

Inheritance diagram for MatrixIndexBuffer:
Inheritance graph
Collaboration diagram for MatrixIndexBuffer:
Collaboration graph

Public Member Functions

 MatrixIndexBuffer (IndexMatrix *indices, IndexMatrix *extinds=NULL)
 Create the buffer from these matrices. The caller is responsible for deleting these when appropriate. More...
 
 MatrixIndexBuffer (const IndexBuffer *buf) throw (RenderException)
 Copy the data from `buf' into internal matrices which this object is responsible for and will delete in its destructor. More...
 
virtual ~MatrixIndexBuffer ()
 
virtual sval numIndices () const
 Returns the number of index sets. More...
 
virtual sval indexWidth (int i) const
 Returns the width of index set i, i<numIndices(). All index sets for now are assumed to be the same width. More...
 
virtual sval getIndex (int i, int j) const
 Returns the w'th value of index set i. More...
 
- Public Member Functions inherited from IndexBuffer
virtual ~IndexBuffer ()
 

Private Attributes

IndexMatrixindices
 
IndexMatrixextinds
 
bool deleteMatrices
 

Detailed Description

Implementation of a IndexBuffer which uses matrices for storage, like MatrixVertexBuffer.

Constructor & Destructor Documentation

◆ MatrixIndexBuffer() [1/2]

MatrixIndexBuffer ( IndexMatrix indices,
IndexMatrix extinds = NULL 
)
inline

Create the buffer from these matrices. The caller is responsible for deleting these when appropriate.

◆ MatrixIndexBuffer() [2/2]

MatrixIndexBuffer ( const IndexBuffer buf)
throw (RenderException
)
inline

Copy the data from `buf' into internal matrices which this object is responsible for and will delete in its destructor.

Here is the call graph for this function:

◆ ~MatrixIndexBuffer()

virtual ~MatrixIndexBuffer ( )
inlinevirtual

Member Function Documentation

◆ getIndex()

virtual sval getIndex ( int  i,
int  w 
) const
inlinevirtual

Returns the w'th value of index set i.

Reimplemented from IndexBuffer.

Here is the call graph for this function:

◆ indexWidth()

virtual sval indexWidth ( int  i) const
inlinevirtual

Returns the width of index set i, i<numIndices(). All index sets for now are assumed to be the same width.

Reimplemented from IndexBuffer.

Here is the call graph for this function:

◆ numIndices()

virtual sval numIndices ( ) const
inlinevirtual

Returns the number of index sets.

Reimplemented from IndexBuffer.

Here is the call graph for this function:

Member Data Documentation

◆ deleteMatrices

bool deleteMatrices
private

◆ extinds

IndexMatrix* extinds
private

◆ indices

IndexMatrix* indices
private

The documentation for this class was generated from the following file: