Lines Matching defs:windows
78 GLFWwindow* windows[2];
90 windows[0] = glfwCreateWindow(400, 400, "First", NULL, NULL);
91 if (!windows[0])
97 glfwSetKeyCallback(windows[0], key_callback);
99 glfwMakeContextCurrent(windows[0]);
101 // Only enable vsync for the first of the windows to be swapped to
165 windows[1] = glfwCreateWindow(400, 400, "Second", NULL, windows[0]);
166 if (!windows[1])
176 glfwGetWindowSize(windows[0], &width, NULL);
177 glfwGetWindowFrameSize(windows[0], &left, NULL, &right, NULL);
178 glfwGetWindowPos(windows[0], &xpos, &ypos);
180 glfwSetWindowPos(windows[1], xpos + width + left + right, ypos);
183 glfwSetKeyCallback(windows[1], key_callback);
185 glfwMakeContextCurrent(windows[1]);
200 while (!glfwWindowShouldClose(windows[0]) &&
201 !glfwWindowShouldClose(windows[1]))
215 glfwGetFramebufferSize(windows[i], &width, &height);
216 glfwMakeContextCurrent(windows[i]);
225 glfwSwapBuffers(windows[i]);