|
Nebula
|
#include <primitivegroup.h>
Defines a group of primitives as a subset of a vertex buffer and index buffer plus the primitive topology (triangle list, etc...).
Public Member Functions | |
| PrimitiveGroup () | |
| constructor | |
| void | SetBaseVertex (IndexT i) |
| set base vertex index | |
| IndexT | GetBaseVertex () const |
| get index of base vertex | |
| void | SetNumVertices (SizeT n) |
| set number of vertices | |
| SizeT | GetNumVertices () const |
| get number of vertices | |
| void | SetBaseIndex (IndexT i) |
| set base index index | |
| IndexT | GetBaseIndex () const |
| get base index index | |
| void | SetNumIndices (SizeT n) |
| set number of indices | |
| SizeT | GetNumIndices () const |
| get number of indices | |
| SizeT | GetNumPrimitives (const CoreGraphics::PrimitiveTopology::Code &topo) const |
| get computed number of primitives | |
| void | SetBoundingBox (const Math::bbox &bbox) |
| Set the bounding box. | |
| const Math::bbox & | GetBoundingBox () const |
| Get the bounding box for this primitive. | |
Private Attributes | |
| IndexT | baseVertex |
| SizeT | numVertices |
| IndexT | baseIndex |
| SizeT | numIndices |
| Math::bbox | boundingBox |
|
inline |
constructor
|
inline |
get base index index
|
inline |
get index of base vertex
|
inline |
Get the bounding box for this primitive.
|
inline |
get number of indices
|
inline |
get computed number of primitives
|
inline |
get number of vertices
|
inline |
set base index index
|
inline |
set base vertex index
|
inline |
Set the bounding box.
|
inline |
set number of indices
|
inline |
set number of vertices
|
private |
|
private |
|
private |
|
private |
|
private |