MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / monitorByIndex

Method monitorByIndex

App/WindowController.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52int WindowController::windowedHeight = 720;
53
54GLFWmonitor* WindowController::monitorByIndex(int index) {
55 int monitorCount = 0;
56 GLFWmonitor** monitors = glfwGetMonitors(&monitorCount);
57 if (!monitors || index < 0 || index >= monitorCount) {
58 return nullptr;
59 }
60 return monitors[index];
61}
62
63int WindowController::monitorIndex(GLFWmonitor* monitor) {
64 int monitorCount = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected