#include <drawContext.h>
Public Member Functions | |
PatchDescriptor (Far::PatchTables::Descriptor farDesc, unsigned char maxValence, unsigned char subPatch, unsigned char numElements) | |
Far::PatchTables::Type | GetType () const |
Returns the type of the patch. More... | |
Far::PatchTables::TransitionPattern | GetPattern () const |
Returns the transition pattern of the patch if any (5 types) More... | |
unsigned char | GetRotation () const |
Returns the rotation of the patch (4 rotations) More... | |
int | GetNumControlVertices () const |
int | GetMaxValence () const |
Returns the max valence. More... | |
int | GetSubPatch () const |
Returns the subpatch id. More... | |
int | GetNumElements () const |
Returns the number of vertex elements. More... | |
void | SetNumElements (int numElements) |
Set the number of vertex elements. More... | |
bool | operator< (PatchDescriptor const other) const |
Allows ordering of patches by type. More... | |
bool | operator== (PatchDescriptor const other) const |
True if the descriptors are identical. More... | |
Definition at line 58 of file drawContext.h.
|
inline |
Constructor
farDesc | Patch type descriptor |
maxValence | Highest vertex valence in the primitive |
subPatch | Index of the triangulated sub-patch for the given transition pattern. Transition patches need to be split into multiple sub-patches in order to be rendered with hardware tessellation. |
numElements | The size of the vertex and varying data per-vertex (in floats) |
Definition at line 74 of file drawContext.h.
|
inline |
Returns the max valence.
Definition at line 101 of file drawContext.h.
|
inline |
Returns the number of control vertices expected for a patch of the type described
Definition at line 96 of file drawContext.h.
|
inline |
Returns the number of vertex elements.
Definition at line 111 of file drawContext.h.
|
inline |
Returns the transition pattern of the patch if any (5 types)
Definition at line 85 of file drawContext.h.
|
inline |
Returns the rotation of the patch (4 rotations)
Definition at line 90 of file drawContext.h.
|
inline |
Returns the subpatch id.
Definition at line 106 of file drawContext.h.
|
inline |
Returns the type of the patch.
Definition at line 80 of file drawContext.h.
|
inline |
Allows ordering of patches by type.
Definition at line 237 of file drawContext.h.
|
inline |
True if the descriptors are identical.
Definition at line 247 of file drawContext.h.
|
inline |
Set the number of vertex elements.
Definition at line 116 of file drawContext.h.