NewtonMeshNextMaterial
NewtonMeshNextMaterial
int NewtonMeshNextMaterial (const NewtonMesh* const mesh, void* const handle, int materialId)
Usage
Returns the next material handle used by the given mesh primitive.
Parameters
- const NewtonMesh* mesh - pointer to the mesh primitive.
- int materialHandle - handle of the previous material of the mesh.
Return
- The handle of the first graphical material used by the mesh.
Description
Returns the next material handle used by the given mesh primitive.
The function acts like an iterator together with NewtonMeshFirstMaterial.
Remarks
- Added in Newton 2.0
- To get the graphical material (usually a texture object) corresponding to the mesh material handle use NewtonMeshMaterialGetMaterial