Raftel Engine
 
Loading...
Searching...
No Matches
Raftel::WindowSystem Class Reference

Manages the initialization and termination of the GLFW window system. More...

#include <window.hpp>

Public Member Functions

 ~WindowSystem () noexcept
 Destructor that terminates the GLFW library if necessary.
 
WindowSystemoperator= (WindowSystem &)
 
 WindowSystem (WindowSystem &&other) noexcept
 Move constructor for WindowSystem.
 
 WindowSystem ()
 Default constructor for WindowSystem.
 

Static Public Member Functions

static std::unique_ptr< WindowSystemmake ()
 Creates and initializes the WindowSystem.
 

Detailed Description

Manages the initialization and termination of the GLFW window system.

The WindowSystem class is responsible for setting up the GLFW library, and terminating it when no longer needed. It ensures the proper management of the global windowing system.

Definition at line 42 of file window.hpp.

Constructor & Destructor Documentation

◆ WindowSystem()

Raftel::WindowSystem::WindowSystem ( WindowSystem && other)
noexcept

Move constructor for WindowSystem.

This constructor transfers ownership of resources from another WindowSystem object.

Parameters
otherThe object to move from.

Member Function Documentation

◆ make()

static std::unique_ptr< WindowSystem > Raftel::WindowSystem::make ( )
static

Creates and initializes the WindowSystem.

Returns
A unique pointer to the created WindowSystem object, or nullptr if initialization fails.

◆ operator=()

WindowSystem & Raftel::WindowSystem::operator= ( WindowSystem & )
inline

Definition at line 54 of file window.hpp.


The documentation for this class was generated from the following file: