Lines Matching defs:window
153 GLFWwindow* window;
508 // demo->swapchain is out of date (e.g. the window was resized) and
558 // demo->swapchain is out of date (e.g. the window was resized) and
1479 static void demo_key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) {
1481 glfwSetWindowShouldClose(window, GLFW_TRUE);
1484 static void demo_refresh_callback(GLFWwindow* window) {
1485 struct demo* demo = glfwGetWindowUserPointer(window);
1489 static void demo_resize_callback(GLFWwindow* window, int width, int height) {
1490 struct demo* demo = glfwGetWindowUserPointer(window);
1497 while (!glfwWindowShouldClose(demo->window)) {
1513 glfwSetWindowShouldClose(demo->window, GLFW_TRUE);
1520 demo->window = glfwCreateWindow(demo->width,
1525 if (!demo->window) {
1527 printf("Cannot create a window in which to draw!\n");
1532 glfwSetWindowUserPointer(demo->window, demo);
1533 glfwSetWindowRefreshCallback(demo->window, demo_refresh_callback);
1534 glfwSetFramebufferSizeCallback(demo->window, demo_resize_callback);
1535 glfwSetKeyCallback(demo->window, demo_key_callback);
1870 // Create a WSI surface for the window:
1871 glfwCreateWindowSurface(demo->inst, demo->window, NULL, &demo->surface);
2071 glfwDestroyWindow(demo->window);
2078 // In order to properly resize the window, we must re-create the swapchain