![]() |
Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
|
Abstract interface for platform-specific window management. More...
#include <i_window_system.hpp>
Inherited by rendering_engine::StandaloneDesktopWindow.
Public Member Functions | |
| virtual void | CreateAppWindow (unsigned int width, unsigned int height, const std::string &title)=0 |
| Creates the main application window. | |
| virtual void | PollEvents ()=0 |
| Polls and processes OS-level window events (input, resize, close, etc.). | |
| virtual bool | ShouldClose () const =0 |
| Checks whether the user has requested to close the window. | |
| virtual void * | GetNativeHandle () const =0 |
| Returns a pointer to the underlying native window handle. | |
| virtual bool | IsFramebufferResized () const =0 |
| Checks if the framebuffer has been resized since the last frame. | |
| virtual void | ResetFramebufferResizedFlag ()=0 |
| Resets the framebuffer resized flag after handling a resize event. | |
| virtual void | Shutdown ()=0 |
| Performs cleanup and releases window-related resources. | |
| virtual const IApplication & | GetApplication ()=0 |
| Retrieves a reference to the owning application instance. | |
| virtual WindowResolution | GetFullScreenResolution () const =0 |
| Queries the resolution of the full-screen display mode. | |
| virtual | ~IWindowSystem ()=default |
| Virtual destructor for safe polymorphic cleanup. | |
Abstract interface for platform-specific window management.
Provides a unified API for creating, managing, and querying window state. Platform-specific implementations (e.g., GLFW, SDL, Win32, X11) are expected to implement this interface to integrate with the rendering engine.
Definition at line 34 of file i_window_system.hpp.
|
virtualdefault |
Virtual destructor for safe polymorphic cleanup.
|
pure virtual |
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. |
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Retrieves a reference to the owning application instance.
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Queries the resolution of the full-screen display mode.
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Returns a pointer to the underlying native window handle.
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Checks if the framebuffer has been resized since the last frame.
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Polls and processes OS-level window events (input, resize, close, etc.).
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Resets the framebuffer resized flag after handling a resize event.
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Checks whether the user has requested to close the window.
Implemented in rendering_engine::StandaloneDesktopWindow.
|
pure virtual |
Performs cleanup and releases window-related resources.
Implemented in rendering_engine::StandaloneDesktopWindow.