7struct GlfwPreInitConfig;
static std::string get_platform()
Gets the current GLFW platform (Wayland, X11, etc.)
static void mark_window_created()
Increments the count of active GLFW windows.
static uint32_t s_window_count
Number of currently active GLFW windows.
static void mark_window_destroyed()
Decrements the count of active GLFW windows.
static void set_error_callback(std::function< void(int, const char *)> callback)
Sets a custom error callback for GLFW errors.
static bool initialize()
Initializes the GLFW library if not already initialized.
static void terminate()
Terminates the GLFW library if initialized and no windows remain.
static std::vector< const char * > get_required_instance_extensions()
Retrieves the list of required Vulkan instance extensions for GLFW.
static GlfwPreInitConfig s_preinit_config
static std::function< void(int, const char *)> s_error_callback
Internal GLFW error callback that forwards to the user-defined callback if set.
static MonitorInfo get_monitor(int32_t id)
Retrieves information about a specific monitor by ID.
static uint32_t get_window_count()
Gets the current count of active GLFW windows.
static void configure(const GlfwPreInitConfig &config)
Configures GLFW with pre-initialization hints.
static MonitorInfo get_primary_monitor()
Retrieves information about the primary monitor.
static bool is_initialized()
Checks if GLFW has been initialized.
static std::vector< MonitorInfo > enumerate_monitors()
Enumerates all connected monitors and their information.
static bool is_wayland()
Checks if running on Wayland.
static bool s_initialized
Tracks whether GLFW has been initialized.
Singleton utility for managing global GLFW initialization and termination.
Configuration hints for GLFW initialization.
Information about a physical display.