GUInity
|
#include <Light.hpp>
Public Member Functions | |
Light () | |
Light (glm::vec3 color) | |
~Light () | |
glm::vec3 | getColor () |
void | setColor (glm::vec3) |
virtual void | init () override |
virtual void | destroy () override |
virtual shared_ptr< Component > | clone () override |
virtual shared_ptr< ComponentDescription > | getComponentDescription () override |
virtual void | deserialize (shared_ptr< ComponentDescription > desc) override |
![]() | |
Component () | |
virtual | ~Component () |
virtual void | setActive (bool isActive) |
virtual void | awake () |
virtual void | tick (float deltaSecods) |
shared_ptr< Actor > | getActor () |
void | setActor (weak_ptr< Actor > actor) |
Additional Inherited Members | |
![]() | |
static void | addObserver (shared_ptr< Observer > observer) |
static void | removeObserver (shared_ptr< Observer > observer) |
![]() | |
void | setCopyMode (bool initWithData) |
![]() | |
static void | notify (ComponentEventType type, shared_ptr< Component > component, bool isEditor) |
static void | notify (ActorEventType type, shared_ptr< Actor > actor, bool isEditor) |
![]() | |
bool | initWithData |
bool | isActive |
Light Component. This component adds Light behaviour to a game actor. For now the Light component behaves like point light and is very very basic There are no shadows currently.
Light::Light | ( | ) |
Default Constructor. White Light
Light::Light | ( | glm::vec3 | c | ) |
Default Constructor. Colored Light
Light::~Light | ( | ) |
Default Destructor
|
overridevirtual |
|
overridevirtual |
glm::vec3 Light::getColor | ( | ) |
color setter
|
overridevirtual |
void Light::setColor | ( | glm::vec3 | color | ) |
color setter