All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DrawContext::PatchDescriptor Class Reference

#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...
 

Detailed Description

Definition at line 58 of file drawContext.h.

Constructor & Destructor Documentation

PatchDescriptor ( Far::PatchTables::Descriptor  farDesc,
unsigned char  maxValence,
unsigned char  subPatch,
unsigned char  numElements 
)
inline

Constructor

Parameters
farDescPatch type descriptor
maxValenceHighest vertex valence in the primitive
subPatchIndex 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.
numElementsThe size of the vertex and varying data per-vertex (in floats)

Definition at line 74 of file drawContext.h.

Member Function Documentation

int GetMaxValence ( ) const
inline

Returns the max valence.

Definition at line 101 of file drawContext.h.

int GetNumControlVertices ( ) const
inline

Returns the number of control vertices expected for a patch of the type described

Definition at line 96 of file drawContext.h.

int GetNumElements ( ) const
inline

Returns the number of vertex elements.

Definition at line 111 of file drawContext.h.

Far::PatchTables::TransitionPattern GetPattern ( ) const
inline

Returns the transition pattern of the patch if any (5 types)

Definition at line 85 of file drawContext.h.

unsigned char GetRotation ( ) const
inline

Returns the rotation of the patch (4 rotations)

Definition at line 90 of file drawContext.h.

int GetSubPatch ( ) const
inline

Returns the subpatch id.

Definition at line 106 of file drawContext.h.

Far::PatchTables::Type GetType ( ) const
inline

Returns the type of the patch.

Definition at line 80 of file drawContext.h.

bool operator< ( PatchDescriptor const  other) const
inline

Allows ordering of patches by type.

Definition at line 237 of file drawContext.h.

bool operator== ( PatchDescriptor const  other) const
inline

True if the descriptors are identical.

Definition at line 247 of file drawContext.h.

void SetNumElements ( int  numElements)
inline

Set the number of vertex elements.

Definition at line 116 of file drawContext.h.


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