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
8namespace hellfire {
9 class Scene;
10 using EntityID = uint32_t;
11
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}
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)
Manages a collection of entities and their hierarchical relationships.
Definition Scene.h:24
Entity * get_entity(EntityID id)
Retrieves an entity by its ID.
Definition Scene.cpp:81