PointLightComponent Class. This class defines the specific behaves of PointLightComponent. More...
#include <PointLightComponent.h>
Public Member Functions | |
| PointLightComponent (const SpicesShader::PointLight &pointLight) | |
| Constructor Function. Init class variable. Usually call it. | |
| PointLightComponent () | |
| virtual | ~PointLightComponent () override=default |
| Destructor Function. | |
| virtual void | OnSerialize () override |
| This interface defines how to serialize. | |
| virtual void | OnDeSerialize () override |
| This interface defines how to deserialize. | |
| virtual void | DrawThis () override |
| This interface defines how to draw this component to property panel. | |
| void | SetColor (const glm::vec3 &color) |
| Set PointLight Color. | |
| const SpicesShader::PointLight & | GetLight () const |
| Get the PointLight variable. | |
| void | SetIntensity (float intensity) |
| Set PointLight Intensity. | |
| virtual void | OnComponentAdded (const entt::entity &entity) |
| This interface defines the behaves on specific component added. Init with variable. | |
Protected Attributes | |
| entt::entity | m_Owner { entt::null } |
| This component's Owner entity. | |
Private Attributes | |
| SpicesShader::PointLight | m_PointLight {} |
| This PointLight data this component handled. | |
PointLightComponent Class. This class defines the specific behaves of PointLightComponent.
Definition at line 20 of file PointLightComponent.h.