Renderable

Inherited: None

Description

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

Public Methods

AABBox

bound () const

Material *

material () const

Mesh *

meshToDraw () const

int

priority () const

void

setMaterial (Material * material)

void

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

Static Methods

None

Methods Description

AABBox Renderable::bound () const

Returns a bound box of the renderable object.


Material * Renderable::material () const

Returns a first instantiated Material assigned to this Renderable.

See also setMaterial().


Mesh * Renderable::meshToDraw () const

Returns a mesh wich will be drawn.


int Renderable::priority () const

Returns the prority value used to sort renadarble components before drawing. Lower values are rendered first and higher are rendered last.


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.