Vivid
Loading...
Searching...
No Matches
Vivid::DirectionalLightComponent Class Reference
Inheritance diagram for Vivid::DirectionalLightComponent:
[legend]
Collaboration diagram for Vivid::DirectionalLightComponent:
[legend]

Public Member Functions

 DirectionalLightComponent (Maths::Vec3 lightColor)
 
void Draw (Camera *camera) override
 
void ImGuiRender () override
 
void SetDirection (Maths::Vec3 direction)
 
Maths::Vec3 GetLightColor () const
 
float GetIntensity () const
 
Maths::Vec3 GetDirection () const
 
ComponentType GetComponentType () override
 
- Public Member Functions inherited from Vivid::Component
virtual void Draw (Camera *camera)=0
 
virtual void ImGuiRender ()=0
 
int GetOwnerEntityID () const
 
void SetEntity (const int &entityID)
 
virtual ComponentType GetComponentType ()=0
 
int GetComponentID () const
 

Additional Inherited Members

- Protected Attributes inherited from Vivid::Component
int m_OwnerEntityID = 0
 

Detailed Description

Definition at line 18 of file DirectionalLightComponent.h.

Constructor & Destructor Documentation

◆ DirectionalLightComponent()

Vivid::DirectionalLightComponent::DirectionalLightComponent ( Maths::Vec3  lightColor)

Definition at line 10 of file DirectionalLightComponent.cpp.

Member Function Documentation

◆ Draw()

void Vivid::DirectionalLightComponent::Draw ( Camera camera)
overridevirtual

Implements Vivid::Component.

Definition at line 15 of file DirectionalLightComponent.cpp.

◆ GetComponentType()

ComponentType Vivid::DirectionalLightComponent::GetComponentType ( )
inlineoverridevirtual

Implements Vivid::Component.

Definition at line 37 of file DirectionalLightComponent.h.

◆ GetDirection()

Maths::Vec3 Vivid::DirectionalLightComponent::GetDirection ( ) const
inline

Definition at line 36 of file DirectionalLightComponent.h.

◆ GetIntensity()

float Vivid::DirectionalLightComponent::GetIntensity ( ) const
inline

Definition at line 35 of file DirectionalLightComponent.h.

◆ GetLightColor()

Maths::Vec3 Vivid::DirectionalLightComponent::GetLightColor ( ) const
inline

Definition at line 34 of file DirectionalLightComponent.h.

◆ ImGuiRender()

void Vivid::DirectionalLightComponent::ImGuiRender ( )
overridevirtual

Implements Vivid::Component.

Definition at line 34 of file DirectionalLightComponent.cpp.

◆ SetDirection()

void Vivid::DirectionalLightComponent::SetDirection ( Maths::Vec3  direction)
inline

Definition at line 32 of file DirectionalLightComponent.h.


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