igor::iMeshRenderComponent Class Reference

#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< iaStringgetInfo () const override
 
- Public Member Functions inherited from igor::iEntityComponent
 iEntityComponent ()
 
virtual ~iEntityComponent ()=default
 
const iEntityComponentIDgetID () const
 
iEntityComponentState getState () const
 
virtual std::vector< iaStringgetInfo () const
 
IGOR_INLINE void setDirty ()
 
uint16 getVersion () const
 

Static Public Member Functions

static iEntityComponentcreateInstance ()
 
static const iaStringgetTypeName ()
 

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
 

Detailed Description

mesh render component

Constructor & Destructor Documentation

◆ iMeshRenderComponent()

igor::iMeshRenderComponent::iMeshRenderComponent ( )

default ctor

Member Function Documentation

◆ addMesh()

void igor::iMeshRenderComponent::addMesh ( iMeshPtr  mesh,
iMaterialPtr  material,
const iaMatrixd offset = iaMatrixd() 
)

adds mesh to render component

Parameters
meshthe mesh to add
materialthe material to use
offsetthe offset matrix to apply

◆ createInstance()

iEntityComponent * igor::iMeshRenderComponent::createInstance ( )
static

creates instance of this component type

◆ getInfo()

std::vector< iaString > igor::iMeshRenderComponent::getInfo ( ) const
overridevirtual
Returns
a set of info strings

Reimplemented from igor::iEntityComponent.

◆ getMeshReferences()

const std::vector< iMeshReference > & igor::iMeshRenderComponent::getMeshReferences ( ) const
Returns
all mesh references

◆ getTypeName()

const iaString & igor::iMeshRenderComponent::getTypeName ( )
static
Returns
type name of component

Friends And Related Function Documentation

◆ iPrefabIO

friend class iPrefabIO
friend

The documentation for this class was generated from the following files: