Function glfwGetVideoModes

  • 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.

    Parameters

    • monitor: GLFWmonitor

      The monitor to query.

    • count: number

      Where to store the number of video modes in the returned array. This is set to zero if an error occurred.

    Returns GLFWvidmode[]

    An array of video modes, or null if an error occurred.

Generated using TypeDoc