Loading...
Searching...
No Matches
PointLight.h
Go to the documentation of this file.
1//
2// Created by denzel on 08/08/2025.
3//
4
5#pragma once
6#include <string>
7
8#include "hellfire/ecs/LightComponent.h"
9
10namespace hellfire {
11 class Scene;
12 using EntityID = uint32_t;
13
14 class PointLight {
15 public:
16 static EntityID create(
17 Scene* scene,
18 const std::string& name = "PointLight",
19 const glm::vec3& position = glm::vec3(0.0f),
20 const glm::vec3& color = glm::vec3(1.0f),
21 float intensity = 1.0f,
22 float range = 10.0f
23 );
24 };
25}
TransformComponent * transform()
Definition Entity.cpp:42
static EntityID create(Scene *scene, const std::string &name="PointLight", const glm::vec3 &position=glm::vec3(0.0f), const glm::vec3 &color=glm::vec3(1.0f), float intensity=1.0f, float range=10.0f)
Definition PointLight.cpp:9
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
EntityID create_entity(const std::string &name="GameObject")
Creates a new entity in the scene.
Definition Scene.cpp:29
void set_position(float x, float y, float z)