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

#include <CDirectionalLight.h>

Inheritance diagram for OvCore::ECS::Components::CDirectionalLight:
OvCore::ECS::Components::CLight OvCore::ECS::Components::AComponent OvCore::API::IInspectorItem OvCore::API::ISerializable

Public Member Functions

 CDirectionalLight (ECS::Actor &p_owner)
 
std::string GetName () override
 
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::CLight
 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)
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from OvCore::ECS::Components::AComponent
ECS::Actorowner
 
- Protected Attributes inherited from OvCore::ECS::Components::CLight
OvRendering::Entities::Light m_data
 

Detailed Description

A simple light that has no attenuation and that has a direction

Constructor & Destructor Documentation

◆ CDirectionalLight()

OvCore::ECS::Components::CDirectionalLight::CDirectionalLight ( 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

◆ GetName()

std::string OvCore::ECS::Components::CDirectionalLight::GetName ( )
overridevirtual

Returns the name of the component

Implements OvCore::ECS::Components::AComponent.

◆ OnDeserialize()

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

Deserialize the component

Parameters
p_doc
p_node

Reimplemented from OvCore::ECS::Components::CLight.

◆ OnInspector()

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

Defines how the component should be drawn in the inspector

Parameters
p_root

Reimplemented from OvCore::ECS::Components::CLight.

◆ OnSerialize()

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

Serialize the component

Parameters
p_doc
p_node

Reimplemented from OvCore::ECS::Components::CLight.


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