|
0.45.0
|
#include <iMeshRenderComponent.h>
Inherits igor::iEntityComponent.
Public Member Functions | |
| iMeshRenderComponent () | |
| void | addMesh (iMeshPtr mesh, iMaterialPtr material, const iaMatrixd &offset=iaMatrixd()) |
| const std::vector< iMeshReference > & | getMeshReferences () const |
| std::vector< iaString > | getInfo () const override |
Public Member Functions inherited from igor::iEntityComponent | |
| iEntityComponent () | |
| virtual | ~iEntityComponent ()=default |
| const iEntityComponentID & | getID () const |
| iEntityComponentState | getState () const |
| virtual std::vector< iaString > | getInfo () const |
| IGOR_INLINE void | setDirty () |
| uint16 | getVersion () const |
Static Public Member Functions | |
| static iEntityComponent * | createInstance () |
| static const iaString & | getTypeName () |
Friends | |
| class | iPrefabIO |
Additional Inherited Members | |
Protected Member Functions inherited from igor::iEntityComponent | |
| virtual bool | onLoad (iEntityPtr entity, bool &asyncLoad) |
| virtual void | onActivate (iEntityPtr entity) |
| virtual void | onDeactivate (iEntityPtr entity) |
| virtual void | onUnLoad (iEntityPtr entity) |
| virtual iEntityComponentPtr | getCopy ()=0 |
| iEntityPtr | getEntity () const |
mesh render component
| igor::iMeshRenderComponent::iMeshRenderComponent | ( | ) |
default ctor
| void igor::iMeshRenderComponent::addMesh | ( | iMeshPtr | mesh, |
| iMaterialPtr | material, | ||
| const iaMatrixd & | offset = iaMatrixd() |
||
| ) |
adds mesh to render component
| mesh | the mesh to add |
| material | the material to use |
| offset | the offset matrix to apply |
|
static |
creates instance of this component type
|
overridevirtual |
Reimplemented from igor::iEntityComponent.
| const std::vector< iMeshReference > & igor::iMeshRenderComponent::getMeshReferences | ( | ) | const |
|
static |
|
friend |