This function generates a list of all video modes supported by the specified monitor.
The returned array is sorted in ascending order, first by color bit depth (the sum of all channel depths) and then by resolution area (the product of width and height).
The returned array is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be valid until the monitor is disconnected, the monitor mode is changed or the library is terminated.
This function generates a list of all video modes supported by the specified monitor.
The returned array is sorted in ascending order, first by color bit depth (the sum of all channel depths) and then by resolution area (the product of width and height).
The returned array is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be valid until the monitor is disconnected, the monitor mode is changed or the library is terminated.