#include <drawContext.h>
Public Member Functions | |
PatchArray (PatchDescriptor desc, Far::PatchTables::PatchArray::ArrayRange const &range) | |
PatchDescriptor | GetDescriptor () const |
Returns a patch descriptor defining the type of patches in the array. More... | |
void | SetDescriptor (PatchDescriptor desc) |
Update a patch descriptor. More... | |
Far::PatchTables::PatchArray::ArrayRange const & | GetArrayRange () const |
Returns a array range struct. More... | |
unsigned int | GetVertIndex () const |
unsigned int | GetPatchIndex () const |
unsigned int | GetNumPatches () const |
Returns the number of patches in the array. More... | |
unsigned int | GetNumIndices () const |
Returns the number of patch indices in the array. More... | |
unsigned int | GetQuadOffsetIndex () const |
Returns the offset of quad offset table. More... | |
void | SetNumPatches (int npatches) |
Set num patches (used at batch glomming) More... | |
Definition at line 133 of file drawContext.h.
|
inline |
Constructor
desc | Patch descriptor defines the type, pattern, rotation of the patches in the array |
range | The range of vertex indices |
Definition at line 142 of file drawContext.h.
|
inline |
Returns a array range struct.
Definition at line 156 of file drawContext.h.
|
inline |
Returns a patch descriptor defining the type of patches in the array.
Definition at line 146 of file drawContext.h.
|
inline |
Returns the number of patch indices in the array.
Definition at line 178 of file drawContext.h.
|
inline |
Returns the number of patches in the array.
Definition at line 173 of file drawContext.h.
|
inline |
Returns the global index of the first patch in this array (Used to access ptex / fvar table data)
Definition at line 168 of file drawContext.h.
|
inline |
Returns the offset of quad offset table.
Definition at line 183 of file drawContext.h.
|
inline |
Returns the index of the first control vertex of the first patch of this array in the global PTable
Definition at line 162 of file drawContext.h.
|
inline |
Update a patch descriptor.
Definition at line 151 of file drawContext.h.
|
inline |
Set num patches (used at batch glomming)
Definition at line 188 of file drawContext.h.