#include <light.h>
◆ ~LightComponent()
tram::LightComponent::~LightComponent |
( |
| ) |
|
◆ EventHandler()
void tram::LightComponent::EventHandler |
( |
Event & |
event | ) |
|
|
inlinevirtual |
◆ GetColor()
Returns the color of the light.
◆ GetDistance()
float tram::LightComponent::GetDistance |
( |
| ) |
|
Returns the distance of the light.
◆ Init()
void tram::LightComponent::Init |
( |
| ) |
|
|
virtual |
◆ SetColor()
Sets the color of the light.
◆ SetDirection()
void tram::LightComponent::SetDirection |
( |
vec3 |
direction | ) |
|
◆ SetDistance()
void tram::LightComponent::SetDistance |
( |
float |
dist | ) |
|
Sets the distance of the light.
Sets how far the light will travel.
◆ SetExponent()
void tram::LightComponent::SetExponent |
( |
float |
exponent | ) |
|
◆ SetLocation()
void tram::LightComponent::SetLocation |
( |
vec3 |
location | ) |
|
Sets the location of the light.
◆ Start()
void tram::LightComponent::Start |
( |
| ) |
|
|
inlinevirtual |
◆ Update()
void tram::LightComponent::Update |
( |
| ) |
|
|
protected |
◆ color
◆ direction
vec3 tram::LightComponent::direction = {0.0f, 0.0f, -1.0f} |
|
protected |
◆ distance
float tram::LightComponent::distance = 15.0f |
|
protected |
◆ exponent
float tram::LightComponent::exponent = 0.0f |
|
protected |
◆ light
◆ location
vec3 tram::LightComponent::location = {0.0f, 0.0f, 0.0f} |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/light.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/light.cpp