Loading...
Searching...
No Matches
DirectionalLight.h
Go to the documentation of this file.
1
//
2
// Created by denzel on 08/08/2025.
3
//
4
5
#
pragma
once
6
#
include
"hellfire/ecs/LightComponent.h"
7
8
namespace
hellfire
{
9
class
Scene
;
10
using
EntityID = uint32_t;
11
12
class
DirectionalLight
{
13
public
:
14
static
EntityID
create
(
15
Scene
* scene,
16
const
std::string& name =
"DirectionalLight"
,
17
const
glm::vec3& direction =
glm
::
vec3
(0.0f, -1.0f, 0.0f),
18
const
glm::vec3& color =
glm
::
vec3
(1.0f),
19
float
intensity = 1.0f
20
);
21
};
22
}
hellfire::DirectionalLight
Definition
DirectionalLight.h:12
hellfire::DirectionalLight::create
static EntityID create(Scene *scene, const std::string &name="DirectionalLight", const glm::vec3 &direction=glm::vec3(0.0f, -1.0f, 0.0f), const glm::vec3 &color=glm::vec3(1.0f), float intensity=1.0f)
Definition
DirectionalLight.cpp:9
hellfire::Entity
Definition
Entity.h:33
hellfire::LightComponent
Definition
LightComponent.h:19
hellfire::LightComponent::LightType
LightType
Definition
LightComponent.h:21
hellfire::LightComponent::DIRECTIONAL
@ DIRECTIONAL
Definition
LightComponent.h:22
hellfire::Scene
Manages a collection of entities and their hierarchical relationships.
Definition
Scene.h:24
hellfire::Scene::get_entity
Entity * get_entity(EntityID id)
Retrieves an entity by its ID.
Definition
Scene.cpp:81
hellfire
Definition
AssetManager.cpp:10
engine
src
hellfire
graphics
lighting
DirectionalLight.h
Generated by
1.9.8