Unravel Engine C++ Reference
Loading...
Searching...
No Matches
skylight_system.cpp
Go to the documentation of this file.
1#include "skylight_system.h"
2#include <engine/events.h>
3
6#include <engine/ecs/ecs.h>
8#include <logging/logging.h>
9
10namespace unravel
11{
12
14{
15 APPLOG_TRACE("{}::{}", hpp::type_name_str(*this), __func__);
16
17 return true;
18}
19
21{
22 APPLOG_TRACE("{}::{}", hpp::type_name_str(*this), __func__);
23
24 return true;
25}
26
28{
29 APP_SCOPE_PERF("Skylight/System Update");
31 [&](auto e, auto&& skylight, auto&& active)
32 {
33 skylight.update(dt);
34 });
35}
36
37void skylight_system::on_play_begin(hpp::span<const entt::handle> entities, delta_t dt)
38{
39
40}
41
42} // namespace unravel
Class that contains sky light data.
auto init(rtti::context &ctx) -> bool
void on_frame_update(scene &scn, delta_t dt)
void on_play_begin(hpp::span< const entt::handle > entities, delta_t dt)
auto deinit(rtti::context &ctx) -> bool
std::chrono::duration< float > delta_t
#define APPLOG_TRACE(...)
Definition logging.h:17
#define APP_SCOPE_PERF(name_literal)
Create a scoped performance timer that records to the timeline profiler. Only accepts string literals...
Definition profiler.h:675
Represents a scene in the ACE framework, managing entities and their relationships.
Definition scene.h:70
std::unique_ptr< entt::registry > registry
The registry that manages all entities in the scene.
Definition scene.h:187