Provides the definition of window management and system setup for the Raftel engine. More...
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <optional>
#include <memory>
#include <raftel/input.hpp>
#include <raftel/global_macros.hpp>
#include <glm/glm.hpp>
Go to the source code of this file.
Classes | |
class | Raftel::WindowSystem |
Manages the initialization and termination of the GLFW window system. More... | |
class | Raftel::Window |
Represents a single window in the system, supporting OpenGL context and input handling. More... | |
Variables | |
constexpr float | Raftel::SCREEN_WIDTH = 640.0f |
Default width of the screen in pixels. | |
constexpr float | Raftel::SCREEN_HEIGHT = 480.0f |
Default height of the screen in pixels. | |
Provides the definition of window management and system setup for the Raftel engine.
WindowSystem
class is responsible for initializing and managing the GLFW windowing system, while the Window
class manages individual windows, allowing for operations such as resizing, context switching, and buffer swapping.The file also includes essential OpenGL setup such as GLEW initialization and debug message callback setup to facilitate debugging and error handling during OpenGL operations.
Definition in file window.hpp.
|
constexpr |
Default height of the screen in pixels.
Definition at line 33 of file window.hpp.
|
constexpr |
Default width of the screen in pixels.
Definition at line 32 of file window.hpp.