NewtonMeshMaterialGetMaterial

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonMeshMaterialGetMaterial

int NewtonMeshMaterialGetMaterial (const NewtonMesh* const mesh, void* const handle, int materialId)

Usage

Returns the graphical material (usually a texture object) corresponding to the given mesh material handle.

Parameters

  • const NewtonMesh* mesh - pointer to the mesh primitive.
  • int materialHandle - the mesh material handle.

Return

  • The graphical material.

Description

Returns the graphical material (usually a texture object) corresponding to the given mesh material handle.

Remarks

Added in Newton 2.0

See also

NewtonMeshMaterialGetIndexCount NewtonMeshMaterialGetIndexStream NewtonMeshMaterialGetIndexStreamShort