Core::Display::Window
Window Management in Unified Engine
Within the Unified Engine
, we have structures and classes to help you easily create and manage windows. This documentation provides an overview of the Window
class and the WindowConfig
structure.
WindowConfig Structure
The WindowConfig
structure is designed to contain all necessary configurations for creating a window.
Configuration Options
Sizing: Determine the starting position of the window on the screen.
Resolution: Specify the window's width and height.
Window Settings: A collection of window settings, including:
Resizability
Full-screen mode
V-Sync
FPS limit
Default background color
GLFW monitor for multi-display setups
Multi-window Setup: For sharing OpenGL contexts between windows.
Window Class
The Window
class extends from the GameInteractionObject
and is responsible for managing window lifecycle, updates, and configurations.
Methods & Functions
Constructor & Destructor: Initialize or destroy a window with a specified configuration.
Activator: Activate the window, get its context or its configurations.
Configurators: Load a window configuration.
Lifecycle Management
Loading & Unloading: Overridden methods from
GameInteractionObject
to manage window lifecycle.
Update Window: Update the window's properties and settings.
Last updated