Nebula
Loading...
Searching...
No Matches
CoreGraphics::PrimitiveGroup Class Reference

#include <primitivegroup.h>

Detailed Description

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
 

Constructor & Destructor Documentation

◆ PrimitiveGroup()

CoreGraphics::PrimitiveGroup::PrimitiveGroup ( )
inline

constructor

Member Function Documentation

◆ GetBaseIndex()

IndexT CoreGraphics::PrimitiveGroup::GetBaseIndex ( ) const
inline

get base index index

◆ GetBaseVertex()

IndexT CoreGraphics::PrimitiveGroup::GetBaseVertex ( ) const
inline

get index of base vertex

◆ GetNumIndices()

SizeT CoreGraphics::PrimitiveGroup::GetNumIndices ( ) const
inline

get number of indices

◆ GetNumPrimitives()

SizeT CoreGraphics::PrimitiveGroup::GetNumPrimitives ( const CoreGraphics::PrimitiveTopology::Code & topo) const
inline

get computed number of primitives

◆ GetNumVertices()

SizeT CoreGraphics::PrimitiveGroup::GetNumVertices ( ) const
inline

get number of vertices

◆ SetBaseIndex()

void CoreGraphics::PrimitiveGroup::SetBaseIndex ( IndexT i)
inline

set base index index

◆ SetBaseVertex()

void CoreGraphics::PrimitiveGroup::SetBaseVertex ( IndexT i)
inline

set base vertex index

◆ SetNumIndices()

void CoreGraphics::PrimitiveGroup::SetNumIndices ( SizeT n)
inline

set number of indices

◆ SetNumVertices()

void CoreGraphics::PrimitiveGroup::SetNumVertices ( SizeT n)
inline

set number of vertices

Member Data Documentation

◆ baseIndex

IndexT CoreGraphics::PrimitiveGroup::baseIndex
private

◆ baseVertex

IndexT CoreGraphics::PrimitiveGroup::baseVertex
private

◆ numIndices

SizeT CoreGraphics::PrimitiveGroup::numIndices
private

◆ numVertices

SizeT CoreGraphics::PrimitiveGroup::numVertices
private

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