Overload  1.1
Game engine with editor
Public Member Functions | Protected Attributes | List of all members
OvCore::ECS::Components::CLight Class Reference

#include <CLight.h>

Inheritance diagram for OvCore::ECS::Components::CLight:
OvCore::ECS::Components::AComponent OvCore::API::IInspectorItem OvCore::API::ISerializable OvCore::ECS::Components::CAmbientBoxLight OvCore::ECS::Components::CAmbientSphereLight OvCore::ECS::Components::CDirectionalLight OvCore::ECS::Components::CPointLight OvCore::ECS::Components::CSpotLight

Public Member Functions

 CLight (ECS::Actor &p_owner)
 
const OvRendering::Entities::LightGetData () const
 
const OvMaths::FVector3GetColor () const
 
float GetIntensity () const
 
void SetColor (const OvMaths::FVector3 &p_color)
 
void SetIntensity (float p_intensity)
 
virtual void OnSerialize (tinyxml2::XMLDocument &p_doc, tinyxml2::XMLNode *p_node) override
 
virtual void OnDeserialize (tinyxml2::XMLDocument &p_doc, tinyxml2::XMLNode *p_node) override
 
virtual void OnInspector (OvUI::Internal::WidgetContainer &p_root) override
 
- Public Member Functions inherited from OvCore::ECS::Components::AComponent
 AComponent (ECS::Actor &p_owner)
 
virtual ~AComponent ()
 
virtual void OnAwake ()
 
virtual void OnStart ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void OnDestroy ()
 
virtual void OnUpdate (float p_deltaTime)
 
virtual void OnFixedUpdate (float p_deltaTime)
 
virtual void OnLateUpdate (float p_deltaTime)
 
virtual void OnCollisionEnter (Components::CPhysicalObject &p_otherObject)
 
virtual void OnCollisionStay (Components::CPhysicalObject &p_otherObject)
 
virtual void OnCollisionExit (Components::CPhysicalObject &p_otherObject)
 
virtual void OnTriggerEnter (Components::CPhysicalObject &p_otherObject)
 
virtual void OnTriggerStay (Components::CPhysicalObject &p_otherObject)
 
virtual void OnTriggerExit (Components::CPhysicalObject &p_otherObject)
 
virtual std::string GetName ()=0
 

Protected Attributes

OvRendering::Entities::Light m_data
 

Additional Inherited Members

- Public Attributes inherited from OvCore::ECS::Components::AComponent
ECS::Actorowner
 

Detailed Description

Base class for any light

Constructor & Destructor Documentation

◆ CLight()

OvCore::ECS::Components::CLight::CLight ( ECS::Actor p_owner)

Constructor

Parameters
p_owner@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ GetColor()

const OvMaths::FVector3 & OvCore::ECS::Components::CLight::GetColor ( ) const

Returns light color

◆ GetData()

const OvRendering::Entities::Light & OvCore::ECS::Components::CLight::GetData ( ) const

Returns light data

◆ GetIntensity()

float OvCore::ECS::Components::CLight::GetIntensity ( ) const

Returns light intensity

◆ OnDeserialize()

void OvCore::ECS::Components::CLight::OnDeserialize ( tinyxml2::XMLDocument &  p_doc,
tinyxml2::XMLNode *  p_node 
)
overridevirtual

◆ OnInspector()

void OvCore::ECS::Components::CLight::OnInspector ( OvUI::Internal::WidgetContainer p_root)
overridevirtual

◆ OnSerialize()

void OvCore::ECS::Components::CLight::OnSerialize ( tinyxml2::XMLDocument &  p_doc,
tinyxml2::XMLNode *  p_node 
)
overridevirtual

◆ SetColor()

void OvCore::ECS::Components::CLight::SetColor ( const OvMaths::FVector3 p_color)

Defines a new color for the light

Parameters
p_color

◆ SetIntensity()

void OvCore::ECS::Components::CLight::SetIntensity ( float  p_intensity)

Defines the intensity for the light

Parameters
p_intensity

Member Data Documentation

◆ m_data

OvRendering::Entities::Light OvCore::ECS::Components::CLight::m_data
protected

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