23 bool init(
int width,
int height,
const char* title);
26 void setIcon(
const char* fallbackPath);
52 static void errorCallback(
int error,
const char* description);
AppWindow & operator=(const AppWindow &)=delete
void pollEvents()
Poll platform events (must be called once per frame).
void setIcon(const char *fallbackPath)
Load and set the window icon from a PNG file.
float queryDpiScale() const
Query the monitor content-scale (DPI).
void requestClose()
Signal the window to close.
static void errorCallback(int error, const char *description)
void framebufferSize(int &w, int &h) const
Retrieve the framebuffer size in pixels.
bool init(int width, int height, const char *title)
AppWindow(const AppWindow &)=delete
GLFWwindow * handle() const noexcept
Raw GLFW handle — needed by ImGui backends and CustomTitleBar.
void swapBuffers()
Swap the front/back framebuffers.
bool shouldClose() const
Returns true when the user (or code) has requested the window to close.