Ejemplo n.º 1
0
 public static IEnumerable<GLFWVideoMode> GetVideoModes(int maxcount)
 {
     var temp = new GLFWVideoMode[maxcount];
     var num = glfwGetVideoModes(temp, maxcount);
     for (var i = 0; i < num; i++)
     {
         yield return temp[i];
     }
 }
Ejemplo n.º 2
0
 public static GLFWVideoMode GetDesktopMode()
 {
     var mode = new GLFWVideoMode();
     glfwGetDesktopMode(ref mode);
     return mode;
 }
Ejemplo n.º 3
0
 private static extern void glfwGetDesktopMode(ref GLFWVideoMode mode);