Raito 0.1
Loading...
Searching...
No Matches
Raito::ECS::LightComponent Struct Reference

#include <Components.h>

Public Types

enum class  Type { DIRECTIONAL , POINT_LIGHT , SPOT_LIGHT }
 

Public Member Functions

 LightComponent ()=default
 
 LightComponent (const LightComponent &)=default
 
 LightComponent (const Type type, const V3 color, const float radius)
 
 LightComponent (const Type type, const V3 color, const V3 direction)
 

Public Attributes

enum Raito::ECS::LightComponent::Type LightType
 
V3 Color = { 1.0f, 1.0f, 1.0f }
 
V3 Direction = { 0.0f, 0.0f, 0.0f }
 
float Radius
 

Member Enumeration Documentation

◆ Type

Enumerator
DIRECTIONAL 
POINT_LIGHT 
SPOT_LIGHT 

Constructor & Destructor Documentation

◆ LightComponent() [1/4]

Raito::ECS::LightComponent::LightComponent ( )
default

◆ LightComponent() [2/4]

Raito::ECS::LightComponent::LightComponent ( const LightComponent & )
default

◆ LightComponent() [3/4]

Raito::ECS::LightComponent::LightComponent ( const Type type,
const V3 color,
const float radius )
inline

◆ LightComponent() [4/4]

Raito::ECS::LightComponent::LightComponent ( const Type type,
const V3 color,
const V3 direction )
inline

Member Data Documentation

◆ Color

V3 Raito::ECS::LightComponent::Color = { 1.0f, 1.0f, 1.0f }

◆ Direction

V3 Raito::ECS::LightComponent::Direction = { 0.0f, 0.0f, 0.0f }

◆ LightType

enum Raito::ECS::LightComponent::Type Raito::ECS::LightComponent::LightType

◆ Radius

float Raito::ECS::LightComponent::Radius

The documentation for this struct was generated from the following file: