Skip to main content

SwapBuffersSystem.ixx File

System that queues swap-buffer commands for shown and active windows. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespaceplatform
namespacewindow
namespacesystems

Classes Index

classSwapBuffersSystem<THandle, TCommandBuffer>

Emits SwapBuffersCommand for each active and shown window. More...

Description

System that queues swap-buffer commands for shown and active windows.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <GLFW/glfw3.h>
8#include <cassert>
9
10export module helios.engine.platform.window.systems.SwapBuffersSystem;
11
12
13
14import helios.engine.runtime.world.UpdateContext;
15
16import helios.engine.runtime.world.tags.SystemRole;
17
18import helios.engine.runtime.world;
19import helios.engine.runtime.messaging.command.NullCommandBuffer;
20import helios.engine.runtime.messaging.command.concepts.IsCommandBufferLike;
21
22import helios.ecs.components.Active;
23
24import helios.engine.platform.window.commands;
25import helios.engine.platform.window.components;
26import helios.engine.platform.window.concepts.IsWindowHandle;
27
31using namespace helios::engine::runtime::messaging::command::concepts;
33using namespace helios::engine::platform::window::concepts;
35using namespace helios::ecs::components;
37
43 template<typename THandle, typename TCommandBuffer = NullCommandBuffer>
46
47 public:
48
50
55
62
63 for (auto [entity, wc, wsc, active]: updateContext.view<
66 >().whereEnabled()) {
67
69 }
70
71 }
72
73 };
74
75
76
77}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.