SwapBuffersSystem.ixx File
System that queues swap-buffer commands for shown and active windows. More...
Included Headers
#include <GLFW/glfw3.h>
#include <cassert>
#include <helios.engine.platform.window.concepts.IsWindowHandle>
#include <helios.engine.platform.window.components>
#include <helios.engine.platform.window.commands>
#include <helios.ecs.components.Active>
#include <helios.engine.runtime.messaging.command.concepts.IsCommandBufferLike>
#include <helios.engine.runtime.messaging.command.NullCommandBuffer>
#include <helios.engine.runtime.world>
#include <helios.engine.runtime.world.tags.SystemRole>
#include <helios.engine.runtime.world.UpdateContext>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | platform |
| namespace | window |
| namespace | systems |
Classes Index
| class | SwapBuffersSystem<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:
28using namespace helios::engine::runtime::world::tags;
29using namespace helios::engine::runtime::world;
30using namespace helios::engine::runtime::messaging::command;
32using namespace helios::engine::platform::window::components;
34using namespace helios::engine::platform::window::commands;
36export namespace helios::engine::platform::window::systems {
44 requires IsWindowHandle<THandle> && IsCommandBufferLike<TCommandBuffer>
45 class SwapBuffersSystem {
49 using CommandBuffer_type = TCommandBuffer;
54 using EngineRoleTag = SystemRole;
61 void update(UpdateContext& updateContext, TCommandBuffer& cmdBuffer) noexcept {
63 for (auto [entity, wc, wsc, active]: updateContext.view<
64 THandle,
66 >().whereEnabled()) {
68 cmdBuffer.template add<SwapBuffersCommand<THandle>>(entity.handle());
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.