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

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

Detailed Description

Definition at line 133 of file drawContext.h.

Constructor & Destructor Documentation

Constructor

Parameters
descPatch descriptor defines the type, pattern, rotation of the patches in the array
rangeThe range of vertex indices

Definition at line 142 of file drawContext.h.

Member Function Documentation

Far::PatchTables::PatchArray::ArrayRange const& GetArrayRange ( ) const
inline

Returns a array range struct.

Definition at line 156 of file drawContext.h.

PatchDescriptor GetDescriptor ( ) const
inline

Returns a patch descriptor defining the type of patches in the array.

Definition at line 146 of file drawContext.h.

unsigned int GetNumIndices ( ) const
inline

Returns the number of patch indices in the array.

Definition at line 178 of file drawContext.h.

unsigned int GetNumPatches ( ) const
inline

Returns the number of patches in the array.

Definition at line 173 of file drawContext.h.

unsigned int GetPatchIndex ( ) const
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.

unsigned int GetQuadOffsetIndex ( ) const
inline

Returns the offset of quad offset table.

Definition at line 183 of file drawContext.h.

unsigned int GetVertIndex ( ) const
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.

void SetDescriptor ( PatchDescriptor  desc)
inline

Update a patch descriptor.

Definition at line 151 of file drawContext.h.

void SetNumPatches ( int  npatches)
inline

Set num patches (used at batch glomming)

Definition at line 188 of file drawContext.h.


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