Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
AmbientLight.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "core/Core.hpp"
4#include "entity/Entity.hpp"
6
9
11 AmbientLight() = default;
12 ~AmbientLight() = default;
13
14 using ID = entt::hashed_string;
16
17 void Create(Engine::Core &core);
18 void Update(Engine::Core &core);
19 void SetEntity(Engine::Core &core, Engine::Entity entity);
20 void SetValue(Engine::Core &core, const Object::Component::AmbientLight &ambientLight);
21
22 private:
25};
26} // namespace DefaultPipeline::Resource
Definition AmbientLightBuffer.hpp:11
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
Wrapper class providing a convenient interface for entity manipulation with the Core....
Definition Entity.hpp:20
Definition AmbientLight.cpp:6
static const entt::hashed_string AMBIENT_LIGHT_BUFFER_ID
Definition AmbientLight.hpp:9
entt::hashed_string ID
Definition AmbientLight.hpp:14
void Update(Engine::Core &core)
Definition AmbientLight.cpp:18
void SetEntity(Engine::Core &core, Engine::Entity entity)
Definition AmbientLight.cpp:24
void Create(Engine::Core &core)
Definition AmbientLight.cpp:8
AmbientLightBuffer & GetLight(Engine::Core &core)
Definition AmbientLight.cpp:36
void SetValue(Engine::Core &core, const Object::Component::AmbientLight &ambientLight)
Definition AmbientLight.cpp:30
ID GetID() const
Definition AmbientLight.hpp:15
Object::Component::AmbientLight _ambientLightComponent
Definition AmbientLight.hpp:24
Definition AmbientLight.hpp:7