ComplexMesh::InitFillRecords

ComplexMesh::InitFillRecords
bool InitFillRecords(HAL* hal, const VertexOutput::Fill* fills, unsigned fillCount, const Matrix2F& vertexMatrix, UPInt * vbSize, unsigned * vertexCount, unsigned * indexCount);
Description

InitFillRecords initializes FillRecord(s)/FillMatrixCache based on the VertexOutput generated data, also returning the required cumulative vertexbuffer size and counts. 

The rendering fill records are initialized by 

- creating PrimitiveFill(s), potentially merged from two FillData(s) for EdgeAA. 

- mapping vertex formats to hardware version. 

- assigning buffer offsets.

Parameters
Parameters 
Description 
HAL* hal 
The render HAL for rendering the shape meshes. 
const VertexOutput::Fill* fills 
Pointer to the vertex set rendered with a common fill style. 
unsigned fillCount 
Number of fills for the complex shape. //Total fill count in layer. 
const Matrix2F& vertexMatrix 
_nt_ 
UPInt * vbSize 
The size of the vertex buffer. 
unsigned * vertexCount 
Number of vertices in the vertex buffer. 
unsigned * indexCount 
Indices into the vertex buffer. 
Return Value

A Boolean value of true if the fill records are initialized and false otherwise.