ComplexMesh

ComplexMesh
Declaration
class ComplexMesh : public MeshBase;
Description

ComplexMesh is a mesh type with multiple fill styles, all drawn together and cached as a unit. Complex meshes are not batched and have a single direct pointer to MeshCacheItem. 

- The staging buffer is also not used for complex mesh. 

- The shape data is stored as ComplexMesh.

Methods
Method 
Description 
Releases the meshes. 
ComplexMesh constructor. 
Obtains the MeshCacheItem containing the tessellated data (Vertex/Index buffer descriptor). 
Returns the number of fills in a complex shape. 
Returns the fill data used in the primitives for the mesh. 
Obtains the PrimitiveFillManager which maintains the fill types. 
Returns an array of FillMatrixCache which are FillMatrices pre-multiplied by VertexMatrix. 
Returns the number of fill styles used by the mesh. 
Returns the FillRecord used by the mesh. 
Returns the number of layers for storing the shape meshes. 
Returns the matrix which is used to scale the 16-bit integer coordinate space to the intended shape coordinates. 
Initializes FillRecord(s)/FillMatrixCache based on the VertexOutput generated data, also returning the required cumulative vertexbuffer size and counts. 
Checks if the mesh allocation is too big to fit in the buffers (Vertex/Index buffers). 
Determines whether the mesh data is evicted from the staging buffer. 
Removes the MeshCacheItem containing the tessellated data. 
Set if the mesh allocation is too big to fit in the buffers. 
Structures
Structure 
Description 
Describes a single fill style used by the mesh; this data is generated as a result of tessellation. 
File

Render_Primitive.h