Unravel Engine C++ Reference
Loading...
Searching...
No Matches
reflection_probe_system.h
Go to the documentation of this file.
1#pragma once
2
3#include <base/basetypes.hpp>
4#include <context/context.hpp>
5#include <engine/ecs/scene.h>
6#include <hpp/span.hpp>
7
8namespace unravel
9{
11{
12public:
13 auto init(rtti::context& ctx) -> bool;
14 auto deinit(rtti::context& ctx) -> bool;
15
16 void on_frame_update(scene& scn, delta_t dt);
17 void on_play_begin(hpp::span<const entt::handle> entities, delta_t dt);
18
27 static auto mark_all_dirty(scene& scn, bool force_full_first_frame = false) -> size_t;
28
29private:
30 std::shared_ptr<int> sentinel_ = std::make_shared<int>(0);
31};
32} // namespace unravel
void on_play_begin(hpp::span< const entt::handle > entities, delta_t dt)
static auto mark_all_dirty(scene &scn, bool force_full_first_frame=false) -> size_t
Flags every reflection probe in the scene for rebuild.
void on_frame_update(scene &scn, delta_t dt)
auto deinit(rtti::context &ctx) -> bool
auto init(rtti::context &ctx) -> bool
std::chrono::duration< float > delta_t
Represents a scene in the ACE framework, managing entities and their relationships.
Definition scene.h:70