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

Method monitorIndex

App/WindowController.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63int WindowController::monitorIndex(GLFWmonitor* monitor) {
64 int monitorCount = 0;
65 GLFWmonitor** monitors = glfwGetMonitors(&monitorCount);
66 if (!monitors || !monitor) {
67 return 0;
68 }
69
70 for (int i = 0; i < monitorCount; ++i) {
71 if (monitors[i] == monitor) {
72 return i;
73 }
74 }
75 return 0;
76}
77
78GLFWmonitor* WindowController::currentMonitor() {
79 if (!window) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected