9#define SDL_MAIN_HANDLED
11#include <SDL3/SDL_main.h>
14#include "components/ErrorUtils.hpp"
40 Window(std::string title,
int resx = 480,
int resy = 640);
bool isFullscreen()
Getter for fullscreen mode.
bool m_cachedExclusiveMode
Cached exclusive mode setting.
float getRefreshRate()
Gets the refresh rate of the display the window is currently on.
void setFullscreen(bool enabled, bool exclusive=false)
Setter for fullscreen mode.
SDL_Window * GetSDLWindow()
Getter for SDL_Window pointer.
static constexpr Uint64 FULLSCREEN_DEBOUNCE_MS
Debounce interval in milliseconds to prevent rapid fullscreen toggles.
Window(std::string title, int resx=480, int resy=640)
Constructor for Window class.
Uint64 m_lastFullscreenChangeTime
Timestamp of last fullscreen state change (in SDL performance counter units).
bool m_cachedFullscreenState
Cached fullscreen state to prevent redundant SDL calls.