|PathEngine home||previous: ||next: |
Sets the testbed's current mesh.
void setMesh(iMesh* mesh);
|mesh||The mesh to set as current mesh.|
The testbed has a current mesh which can be set and released.
This mesh will be drawn by
Positions passed into the testbed must be positions on this mesh.
The current mesh can be released by calling setMesh() again with a null pointer for the mesh argument.
(Or with a different mesh pointer.)
The mesh pointer must remain valid whilst set.
Changing the current mesh has some cost, since render preprocess relating to the mesh is generated internally by the testbed.
In certain situations where the current mesh is changed quite frequently (for example when multiple meshes are being rendered each frame), a 'mesh slot' mechanism can be used to avoid testbed internal render preprocess being regenerated.
In this case, the current mesh in each slot can be set with
Calling setMesh() then actually sets the current mesh in slot 0 (the slot initially active on testbed startup), i.e. this is equivalent to calling setMeshAtSlot() with slot set to 0.
|Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEngine||next: |