MeshCache::PrepareComplexMesh

MeshCache::PrepareComplexMesh
bool PrepareComplexMesh(HAL* hal, ComplexMesh* pprim, bool waitForCache);
Description

PrepareComplexMesh generates complex meshes and uploads them to buffers. Returns 'false' if there is not enough space in Cache, so Unlock and flush needs to take place.

Parameters
Parameters 
Description 
HAL* hal 
The render HAL for accessing the renderer. 
ComplexMesh* pprim 
Pointer to ComplexMesh containing the complex meshes. 
bool waitForCache 
Pass 'false' for firstCall if PrepareComplexMesh was already called once with this data and failed. 
Return Value

A Boolean value of true for successful mesh generation and false otherwise.