| 61 | } |
| 62 | |
| 63 | int 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 | |
| 78 | GLFWmonitor* WindowController::currentMonitor() { |
| 79 | if (!window) { |
nothing calls this directly
no outgoing calls
no test coverage detected