Bläddra i källkod

Added testing of glfwShowWindow and GLFW_VISIBLE.

Camilla Berglund 13 år sedan
förälder
incheckning
b665903e14
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      tests/windows.c

+ 3 - 0
tests/windows.c

@@ -55,6 +55,8 @@ int main(void)
 
     for (i = 0;  i < 4;  i++)
     {
+        glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
+
         windows[i] = glfwCreateWindow(200, 200, GLFW_WINDOWED, titles[i], NULL);
         if (!windows[i])
         {
@@ -71,6 +73,7 @@ int main(void)
                      0.f);
 
         glfwSetWindowPos(windows[i], 100 + (i & 1) * 300, 100 + (i >> 1) * 300);
+        glfwShowWindow(windows[i]);
     }
 
     while (running)