WindowCreateSystem.ixx File
System that translates window-create request components into window-create commands. More...
Included Headers
#include <helios.ecs.components.Active>
#include <helios.engine.platform.window.concepts.IsWindowHandle>
#include <helios.engine.platform.window.commands.WindowCreateCommand>
#include <helios.engine.platform.window.components.WindowCreateRequestComponent>
#include <helios.engine.runtime.world.tags.SystemRole>
#include <helios.engine.runtime.messaging.command.concepts.IsCommandBufferLike>
#include <helios.engine.runtime.messaging.command.NullCommandBuffer>
#include <helios.engine.runtime.world.UpdateContext>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | platform |
| namespace | window |
| namespace | systems |
Classes Index
| class | WindowCreateSystem<THandle, TCommandBuffer> |
|
Queues WindowCreateCommand for active entities with pending create requests. More... | |
Description
System that translates window-create request components into window-create commands.
File Listing
The file content with the documentation metadata removed is:
24using namespace helios::engine::runtime::world::tags;
25using namespace helios::engine::runtime::world;
26using namespace helios::engine::runtime::messaging::command;
28using namespace helios::engine::platform::window::components;
29using namespace helios::engine::platform::window::commands;
31using namespace helios::engine::platform::window::components;
32export namespace helios::engine::platform::window::systems {
40 requires IsWindowHandle<THandle> && IsCommandBufferLike<TCommandBuffer>
41 class WindowCreateSystem {
45 using CommandBuffer_type = TCommandBuffer;
50 using EngineRoleTag = SystemRole;
57 void update(UpdateContext& updateContext, TCommandBuffer& cmdBuffer) noexcept {
59 for (auto [entity, win, active]: updateContext.view<
60 THandle,
62 >().whereEnabled()) {
64 cmdBuffer.template add<WindowCreateCommand<THandle>>(
65 entity.handle(),
66 win->windowConfig
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.