igor::iLightComponent Class Reference

#include <iLightComponent.h>

Inherits igor::iEntityComponent.

Public Member Functions

 iLightComponent ()
 
iaColor3fgetAmbient ()
 
void setAmbient (const iaColor3f &color)
 
void setAmbient (float32 r, float32 g, float32 b)
 
iaColor3fgetDiffuse ()
 
void setDiffuse (const iaColor3f &color)
 
void setDiffuse (float32 r, float32 g, float32 b)
 
iaColor3fgetSpecular ()
 
void setSpecular (const iaColor3f &color)
 
void setSpecular (float32 r, float32 g, float32 b)
 
void setType (iLightType type)
 
iLightType getType () 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 ()
 

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

light component

Constructor & Destructor Documentation

◆ iLightComponent()

igor::iLightComponent::iLightComponent ( )

ctor

Member Function Documentation

◆ createInstance()

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

creates instance of this component type

◆ getAmbient()

iaColor3f & igor::iLightComponent::getAmbient ( )

returns ambient material color

◆ getDiffuse()

iaColor3f & igor::iLightComponent::getDiffuse ( )

returns diffuse material color

◆ getInfo()

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

Reimplemented from igor::iEntityComponent.

◆ getSpecular()

iaColor3f & igor::iLightComponent::getSpecular ( )

returns specular material color

◆ getType()

iLightType igor::iLightComponent::getType ( ) const
Returns
type of light

◆ getTypeName()

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

◆ setAmbient() [1/2]

void igor::iLightComponent::setAmbient ( const iaColor3f color)

set ambient material color

Parameters
colorambient color

◆ setAmbient() [2/2]

void igor::iLightComponent::setAmbient ( float32  r,
float32  g,
float32  b 
)

set ambient material color

Parameters
rred
ggreen
bblue

◆ setDiffuse() [1/2]

void igor::iLightComponent::setDiffuse ( const iaColor3f color)

set diffuse material color

Parameters
colordiffuse color

◆ setDiffuse() [2/2]

void igor::iLightComponent::setDiffuse ( float32  r,
float32  g,
float32  b 
)

set diffuse material color

Parameters
rred
ggreen
bblue

◆ setSpecular() [1/2]

void igor::iLightComponent::setSpecular ( const iaColor3f color)

set specular material color

Parameters
colorspecular color

◆ setSpecular() [2/2]

void igor::iLightComponent::setSpecular ( float32  r,
float32  g,
float32  b 
)

set specular material color

Parameters
rred
ggreen
bblue

◆ setType()

void igor::iLightComponent::setType ( iLightType  type)

set type of light

Parameters
thetype of light

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