Skip to main content

ImGuiOverlayRenderSystem.ixx File

Runtime system that triggers rendering of an ImGui overlay each update. More...

Included Headers

#include <cassert> #include <helios.imgui.ImGuiOverlay> #include <helios.engine.runtime.world.UpdateContext> #include <helios.engine.runtime.world.tags.SystemRole>

Namespaces Index

namespacehelios
namespaceimgui
namespacesystems
namespacetags

Classes Index

classImGuiOverlayRenderSystem

Adapts an ImGuiOverlay to the engine runtime system update step. More...

Description

Runtime system that triggers rendering of an ImGui overlay each update.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <cassert>
8
9export module helios.imgui.systems.ImGuiOverlayRenderSystem;
10
11import helios.engine.runtime.world.tags.SystemRole;
12import helios.engine.runtime.world.UpdateContext;
13
14import helios.imgui.ImGuiOverlay;
15
16using namespace helios::engine::runtime::world::tags;
17using namespace helios::engine::runtime::world;
18using namespace helios::imgui;
19export namespace helios::imgui::systems {
20
29
33 ImGuiOverlay& overlay_;
34
35 public:
36
40 using EngineRoleTag = SystemRole;
41
42
47 explicit ImGuiOverlayRenderSystem(ImGuiOverlay& overlay) : overlay_(overlay) {}
48
53 void update(UpdateContext& updateContext) noexcept {
54 overlay_.render();
55 };
56
57 };
58
59}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.