Vivid
Loading...
Searching...
No Matches
Vivid::PointLightComponent Class Reference

Contains a PointLightComponent. More...

#include <DirectionalLightComponent.h>

Inheritance diagram for Vivid::PointLightComponent:
[legend]
Collaboration diagram for Vivid::PointLightComponent:
[legend]

Public Member Functions

 PointLightComponent (Maths::Vec3 color)
 
void Draw (Camera *camera) override
 
void ImGuiRender () override
 
void SetColor (Maths::Vec3 color)
 
Maths::Vec3 GetColor () const
 
float GetIntensity () 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

Contains a PointLightComponent.

PointLightComponent is a class that contains a point light component. It is a derived class from Component. It contains a color and intensity of the light. It also contains a mesh and shader for the light. It also contains a UI for the point light component. From the UI you can change the color and intensity of the light.

Definition at line 18 of file PointLightComponent.h.

Constructor & Destructor Documentation

◆ PointLightComponent()

Vivid::PointLightComponent::PointLightComponent ( Maths::Vec3  color)

Definition at line 11 of file PointLightComponent.cpp.

Member Function Documentation

◆ Draw()

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

Implements Vivid::Component.

Definition at line 16 of file PointLightComponent.cpp.

◆ GetColor()

Maths::Vec3 Vivid::PointLightComponent::GetColor ( ) const
inline

Definition at line 35 of file PointLightComponent.h.

◆ GetComponentType()

ComponentType Vivid::PointLightComponent::GetComponentType ( )
inlineoverridevirtual

Implements Vivid::Component.

Definition at line 37 of file PointLightComponent.h.

◆ GetIntensity()

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

Definition at line 36 of file PointLightComponent.h.

◆ ImGuiRender()

void Vivid::PointLightComponent::ImGuiRender ( )
overridevirtual

Implements Vivid::Component.

Definition at line 38 of file PointLightComponent.cpp.

◆ SetColor()

void Vivid::PointLightComponent::SetColor ( Maths::Vec3  color)
inline

Definition at line 33 of file PointLightComponent.h.


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