MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_monitor()

MonitorInfo MayaFlux::Core::GLFWSingleton::get_monitor ( int32_t  id)
static

Retrieves information about a specific monitor by ID.

Parameters
idThe ID of the monitor to query
Returns
MonitorInfo struct for the specified monitor, or an empty struct if not found

Queries GLFW for the list of monitors and returns the one matching the given ID.

Definition at line 185 of file GlfwSingleton.cpp.

186{
187 auto monitors = enumerate_monitors();
188 if (id >= 0 && static_cast<size_t>(id) < monitors.size()) {
189 return monitors[id];
190 }
191 return {};
192}
static std::vector< MonitorInfo > enumerate_monitors()
Enumerates all connected monitors and their information.

References enumerate_monitors().

+ Here is the call graph for this function: