2D_Game_Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LightComponent Class Reference

#include <entity.hpp>

Public Member Functions

 LightComponent ()
 
 LightComponent (float x_offset, float y_offset, float radius, float blur, Vec3 color, LightType type, uint32_t uid)
 
 LightComponent (uint32_t uid)
 
void SetOffset (float x_offset, float y_offset)
 
void SetCentered (float width, float height)
 

Public Attributes

float m_XOffset
 
float m_YOffset
 
float m_Radius
 
float m_Blur
 
Vec3 m_Color
 
LightType m_Type
 
uint32_t m_UID
 

Detailed Description

Definition at line 262 of file entity.hpp.

Constructor & Destructor Documentation

◆ LightComponent() [1/3]

LightComponent::LightComponent ( )

Definition at line 130 of file entity.cpp.

◆ LightComponent() [2/3]

LightComponent::LightComponent ( float x_offset,
float y_offset,
float radius,
float blur,
Vec3 color,
LightType type,
uint32_t uid )

Definition at line 131 of file entity.cpp.

◆ LightComponent() [3/3]

LightComponent::LightComponent ( uint32_t uid)

Definition at line 133 of file entity.cpp.

Member Function Documentation

◆ SetCentered()

void LightComponent::SetCentered ( float width,
float height )

Definition at line 140 of file entity.cpp.

◆ SetOffset()

void LightComponent::SetOffset ( float x_offset,
float y_offset )

Definition at line 135 of file entity.cpp.

Member Data Documentation

◆ m_Blur

float LightComponent::m_Blur

Definition at line 272 of file entity.hpp.

◆ m_Color

Vec3 LightComponent::m_Color

Definition at line 273 of file entity.hpp.

◆ m_Radius

float LightComponent::m_Radius

Definition at line 272 of file entity.hpp.

◆ m_Type

LightType LightComponent::m_Type

Definition at line 274 of file entity.hpp.

◆ m_UID

uint32_t LightComponent::m_UID

Definition at line 276 of file entity.hpp.

◆ m_XOffset

float LightComponent::m_XOffset

Definition at line 271 of file entity.hpp.

◆ m_YOffset

float LightComponent::m_YOffset

Definition at line 271 of file entity.hpp.


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