helios::glfw API Reference
GLFW platform integration for the helios engine modules.
Overview
helios::glfw provides a concrete GLFW-backed implementation for platform initialization, native window lifecycle, resize propagation, buffer swapping, and close-request handling.
Features
- GLFW runtime initialization and shutdown handling
- Native window creation from engine window commands
- Framebuffer/window resize propagation
- Buffer swap command processing
- Typed GLFW callback user-pointer bridge
- Window-close polling system
Module surface
| Area | Public modules / APIs |
|---|---|
| Platform manager | GLFWPlatformManager |
| Components | GLFWWindowHandleComponent, GLFWWindowUserPointerComponent |
| Systems | GLFWWindowCloseSystem |
| Types | helios.glfw.types |
| Aggregator | helios.glfw |
Usage
C++ module
Platform architecture
GLFWPlatformManager<TRenderPlatform, THandle, TStateCommandBuffer, TPlatformCommandBuffer> receives platform/window commands, stores pending work, and applies it in flush(UpdateContext&).
GLFW-native data is attached to window entities through ECS components:
- GLFWWindowHandleComponent<THandle> stores the native GLFWwindow*
- GLFWWindowUserPointerComponent<THandle, TPlatformCommandBuffer> stores typed callback payload
GLFWWindowCloseSystem<THandle, TCommandBuffer> scans shown active windows and queues WindowCloseCommand<THandle> when GLFW reports a close request.
CMake
Build and install:
Consume from another project:
Configure a consumer against an installed prefix:
Development
Run the regular CMake build from the repository root:
Related repositories
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.