43 virtual void CreateAppWindow(
unsigned int width,
unsigned int height,
const std::string& title) = 0;
Defines a generic application interface for rendering-based programs.
Abstract interface for platform-specific window management.
virtual void Shutdown()=0
Performs cleanup and releases window-related resources.
virtual void ResetFramebufferResizedFlag()=0
Resets the framebuffer resized flag after handling a resize event.
virtual void CreateAppWindow(unsigned int width, unsigned int height, const std::string &title)=0
Creates the main application window.
virtual void * GetNativeHandle() const =0
Returns a pointer to the underlying native window handle.
virtual ~IWindowSystem()=default
Virtual destructor for safe polymorphic cleanup.
virtual bool ShouldClose() const =0
Checks whether the user has requested to close the window.
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 bool IsFramebufferResized() const =0
Checks if the framebuffer has been resized since the last frame.
virtual void PollEvents()=0
Polls and processes OS-level window events (input, resize, close, etc.).
Represents the pixel resolution of a window or display.
unsigned int height
Window or screen height in pixels.
unsigned int width
Window or screen width in pixels.