Brenta Engine
1.2
Loading...
Searching...
No Matches
dir_light_render_system.hpp
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#ifndef BRENTA_NO_ECS
9
10
#include <brenta/ecs/ecs.hpp>
11
12
#include <vector>
13
14
namespace
brenta
15
{
16
17
class
DirLightRenderSystem
:
public
viotecs::System<DirLightEcsComponent>
18
{
19
public
:
20
21
void
run(std::vector<viotecs::EntityId> entities)
const override
22
{
23
for
(
auto
& e : entities)
24
{
25
auto
dir_light =
26
viotecs::World::entity_to_component<DirLightEcsComponent>(e);
27
dir_light->draw();
28
}
29
}
30
};
31
32
}
// namespace brenta
33
34
#endif
// BRENTA_NO_ECS
brenta::DirLightRenderSystem
Definition
dir_light_render_system.hpp:18
include
brenta
ecs
systems
dir_light_render_system.hpp
Generated by
1.9.8