Eidolon
Public Member Functions | List of all members
IndexBuffer Class Reference

An IndexBuffer is used by Figure objects to read in the topologies for the figures to render, and can also be subtyped in Python. More...

#include <RenderTypes.h>

Inheritance diagram for IndexBuffer:
Inheritance graph
Collaboration diagram for IndexBuffer:
Collaboration graph

Public Member Functions

virtual ~IndexBuffer ()
 
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 w) const
 Returns the w'th value of index set i. More...
 

Detailed Description

An IndexBuffer is used by Figure objects to read in the topologies for the figures to render, and can also be subtyped in Python.

Constructor & Destructor Documentation

◆ ~IndexBuffer()

virtual ~IndexBuffer ( )
inlinevirtual

Member Function Documentation

◆ getIndex()

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

Returns the w'th value of index set i.

Reimplemented in MatrixIndexBuffer, and CallbackIndexBuffer< Ctx >.

◆ 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 in MatrixIndexBuffer, and CallbackIndexBuffer< Ctx >.

◆ numIndices()

virtual sval numIndices ( ) const
inlinevirtual

Returns the number of index sets.

Reimplemented in MatrixIndexBuffer, and CallbackIndexBuffer< Ctx >.


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