MeshRender

Inherited: Renderable

Description

The MeshRender component allows you to display 3D Mesh to use in both 2D and 3D scenes.

Public Methods

VariantList

materials () const

Mesh *

mesh () const

void

setMaterials (VariantList materials)

void

setMesh (Mesh * mesh)

Static Methods

None

Methods Description

VariantList MeshRender::materials () const

Returns a list of assigned materials.

See also setMaterials().


:ref:`Mesh<api_Mesh>`* MeshRender::mesh () const

Returns a Mesh assigned to this component.

See also setMesh().


void MeshRender::setMaterials (VariantList materials)

Assigns an array of the materials to the mesh.

See also *materials*().


void MeshRender::setMesh (Mesh * mesh)

Assigns a new mesh to draw.

See also *mesh*().