Primitive::Insert

Primitive::Insert
bool Insert(HAL* hal, unsigned index, Mesh* pmesh, const HMatrix& m);
Description

Insert registers new meshes and inserts them into HAL.

Parameters
Parameters 
Description 
HAL* hal 
The render HAL for rendering. 
unsigned index 
The index of the mesh. 
Mesh* pmesh 
Pointer to the Mesh for obtaining the meshes for the primitive. 
const HMatrix& m 
The HMatrix applied to the mesh. 
Return Value

Returns true if the meshes are inserted successfully and false otherwise.