The primitive group class stores the following properties about a group of primitives:
|
Public Types |
| enum | PrimitiveGroupType { Indexed,
NonIndexed
} |
| | The primitive group type enum. More...
|
Public Member Functions |
| | PrimitiveGroup (PrimitiveGroupType type, RenderContext::PrimitiveType primitiveType, size_t startIndex, size_t primitiveCount, const boost::shared_ptr< StateSet > &pStateSet, size_t minVertexIndex=0, size_t maxVertexIndex=0) |
| | Constructor that takes a state set that will be associated with this primitive group.
|
| | PrimitiveGroup (PrimitiveGroupType type, RenderContext::PrimitiveType primitiveType, size_t startIndex, size_t primitiveCount, size_t minVertexIndex=0, size_t maxVertexIndex=0) |
| | Constructor that doesn't associate a state set with this primitive group.
|
| PrimitiveGroupType | GetType () const |
| | Returns the type of this primitive group, whether it is indexed or non-indexed.
|
| RenderContext::PrimitiveType | GetPrimitiveType () const |
| | Returns the primitive type of this primitive group (i.e. triangle list, triangle strip, ...).
|
| size_t | GetPrimitiveCount () const |
| | Returns the primitive count.
|
| size_t | GetVertexCount () const |
| | Returns the number of vertices that this primitive uses.
|
| size_t | GetStartIndex () const |
| | Returns the start index into the vertex buffer for non-indexed primitives and into the index buffer for indexed primitives.
|
| const boost::shared_ptr< StateSet > & | GetStateSet () const |
| | Returns the state set associated with this primitive group.
|
| size_t | GetMinVertexIndex () const |
| | Returns the minimum vertex index in the vertex buffer used by this primitive group, if it is an indexed primitive group.
|
| size_t | GetMaxVertexIndex () const |
| | Returns the maximum vertex index in the vertex buffer used by this primitive group, if it is an indexed primitive group.
|