My Project
Loading...
Searching...
No Matches
Engine::WindowOpener Class Reference

Concrete implementation of IWindow using GLFW. Manages window creation, events, and access to native handles. More...

#include <Window.hpp>

Inheritance diagram for Engine::WindowOpener:
Engine::IWindow

Public Member Functions

void WindowInit ()
 Initializes the GLFW window and sets up necessary parameters.
void * GetNativeWindow () const override
 Returns the native platform window handle (HWND on Windows).
void windowPollEvents () override
 Polls for window events (input, resize, etc.) using GLFW. Should be called once per frame.
bool shouldClose () const
 Checks if the window should close.
void CloseWindow ()
 Sets the window to close.
GLFWwindow * getMyWindow () const
 Returns the raw GLFWwindow pointer for direct access if needed.
Public Member Functions inherited from Engine::IWindow
virtual ~IWindow ()=default

Detailed Description

Concrete implementation of IWindow using GLFW. Manages window creation, events, and access to native handles.

Member Function Documentation

◆ CloseWindow()

void Engine::WindowOpener::CloseWindow ( )
inline

Sets the window to close.

◆ getMyWindow()

GLFWwindow * Engine::WindowOpener::getMyWindow ( ) const
inline

Returns the raw GLFWwindow pointer for direct access if needed.

Returns
Raw GLFWwindow pointer

◆ GetNativeWindow()

void * Engine::WindowOpener::GetNativeWindow ( ) const
inlineoverridevirtual

Returns the native platform window handle (HWND on Windows).

Returns
Pointer to native window

Implements Engine::IWindow.

◆ shouldClose()

bool Engine::WindowOpener::shouldClose ( ) const
inline

Checks if the window should close.

Returns
True if window should close

◆ WindowInit()

void Engine::WindowOpener::WindowInit ( )

Initializes the GLFW window and sets up necessary parameters.

◆ windowPollEvents()

void Engine::WindowOpener::windowPollEvents ( )
inlineoverridevirtual

Polls for window events (input, resize, etc.) using GLFW. Should be called once per frame.

Implements Engine::IWindow.


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