![]() |
Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
|
Desktop implementation of the IWindowSystem interface using GLFW. More...
#include <standalone_window_system.hpp>
Inherits rendering_engine::IWindowSystem.
Public Member Functions | |
| StandaloneDesktopWindow (IApplication &app) | |
| Constructs a desktop window system instance. | |
| void | CreateAppWindow (unsigned int width, unsigned int height, const std::string &title) override |
| Creates the main application window. | |
| void | PollEvents () override |
| Polls and processes OS-level window events (input, resize, close, etc.). | |
| bool | ShouldClose () const override |
| Checks whether the user has requested to close the window. | |
| void * | GetNativeHandle () const override |
| Returns a pointer to the underlying native window handle. | |
| void | Shutdown () override |
| Performs cleanup and releases window-related resources. | |
| const IApplication & | GetApplication () override |
| Retrieves a reference to the owning application instance. | |
| bool | IsFramebufferResized () const override |
| Checks if the framebuffer has been resized since the last frame. | |
| void | ResetFramebufferResizedFlag () override |
| Resets the framebuffer resized flag after handling a resize event. | |
| WindowResolution | GetFullScreenResolution () const override |
| Queries the resolution of the full-screen display mode. | |
| Public Member Functions inherited from rendering_engine::IWindowSystem | |
| virtual | ~IWindowSystem ()=default |
| Virtual destructor for safe polymorphic cleanup. | |
Static Public Member Functions | |
| static void | FramebufferResizeCallback (GLFWwindow *window, int width, int height) |
| GLFW framebuffer resize callback. | |
Desktop implementation of the IWindowSystem interface using GLFW.
Provides window creation, event polling, and framebuffer resize handling for standalone desktop environments. This class represents the concrete platform layer for rendering contexts that rely on desktop windowing systems (e.g., Windows, Linux, FreeBSD).
Definition at line 27 of file standalone_window_system.hpp.
| rendering_engine::StandaloneDesktopWindow::StandaloneDesktopWindow | ( | IApplication & | app | ) |
Constructs a desktop window system instance.
| app | Reference to the associated application. |
Definition at line 7 of file standalone_window_system.cpp.
|
overridevirtual |
Creates the main application window.
| width | Width of the window in pixels. |
| height | Height of the window in pixels. |
| title | Title displayed in the window caption. |
Implements rendering_engine::IWindowSystem.
Definition at line 15 of file standalone_window_system.cpp.
|
static |
GLFW framebuffer resize callback.
This static function is registered with GLFW to detect when the framebuffer size changes. It sets the internal resize flag for synchronization with the rendering system.
| window | Pointer to the GLFW window instance. |
| width | New framebuffer width. |
| height | New framebuffer height. |
Definition at line 69 of file standalone_window_system.cpp.
|
overridevirtual |
Retrieves a reference to the owning application instance.
Implements rendering_engine::IWindowSystem.
Definition at line 64 of file standalone_window_system.cpp.
|
overridevirtual |
Queries the resolution of the full-screen display mode.
Implements rendering_engine::IWindowSystem.
Definition at line 75 of file standalone_window_system.cpp.
|
overridevirtual |
Returns a pointer to the underlying native window handle.
Implements rendering_engine::IWindowSystem.
Definition at line 53 of file standalone_window_system.cpp.
|
inlineoverridevirtual |
Checks if the framebuffer has been resized since the last frame.
Implements rendering_engine::IWindowSystem.
Definition at line 48 of file standalone_window_system.hpp.
|
overridevirtual |
Polls and processes OS-level window events (input, resize, close, etc.).
Implements rendering_engine::IWindowSystem.
Definition at line 43 of file standalone_window_system.cpp.
|
inlineoverridevirtual |
Resets the framebuffer resized flag after handling a resize event.
Implements rendering_engine::IWindowSystem.
Definition at line 50 of file standalone_window_system.hpp.
|
overridevirtual |
Checks whether the user has requested to close the window.
Implements rendering_engine::IWindowSystem.
Definition at line 48 of file standalone_window_system.cpp.
|
overridevirtual |
Performs cleanup and releases window-related resources.
Implements rendering_engine::IWindowSystem.
Definition at line 58 of file standalone_window_system.cpp.