bool PrepareComplexMesh(HAL* hal, ComplexMesh* pprim, bool waitForCache);
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 |
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. |
A Boolean value of true for successful mesh generation and false otherwise.