Renderable

Inherited: None

Description

Note: This class must be a superclass only and shouldn’t be created manually.

Public Methods

AABBox

bound ()

Material *

material () const

MaterialInstance *

materialInstance (int index)

Mesh *

meshToDraw (int instance)

void

setMaterial (Material * material)

void

setMaterialsList (const std::list<Material *> & materials)

uint32_t

subMesh (int instance) const

Static Methods

None

Methods Description

AABBox Renderable::bound ()

Returns a bound box of the renderable object.


Material * Renderable::material () const

Returns a first instantiated Material assigned to this Renderable.

See also setMaterial().


MaterialInstance * Renderable::materialInstance (int index)

Returns a Material instance with index assigned to this Renderable.


Mesh * Renderable::meshToDraw (int instance)

Returns a mesh which will be drawn for the particular material instance.


void Renderable::setMaterial (Material * material)

Creates a new instance of material and assigns it.

See also material().


void Renderable::setMaterialsList (*> & materials)

Creates a new instances for the list materials and assigns it.


uint32_t Renderable::subMesh (int instance) const

Returns a sub mesh index which will be drawn for the particular material instance.