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 | |
Private Attributes | |
IndexT | baseVertex |
SizeT | numVertices |
IndexT | baseIndex |
SizeT | numIndices |
|
inline |
constructor
|
inline |
get base index index
|
inline |
get index of base vertex
|
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 number of indices
|
inline |
set number of vertices
|
private |
|
private |
|
private |
|
private |