Lines Matching defs:window
663 // Initialize GLFW and create window
714 GLFWwindow* window = glfwCreateWindow(200, 200, "Version", NULL, NULL);
715 if (window)
717 glfwMakeContextCurrent(window);
726 const int client = glfwGetWindowAttrib(window, GLFW_CLIENT_API);
727 const int major = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MAJOR);
728 const int minor = glfwGetWindowAttrib(window, GLFW_CONTEXT_VERSION_MINOR);
729 const int revision = glfwGetWindowAttrib(window, GLFW_CONTEXT_REVISION);
730 const int profile = glfwGetWindowAttrib(window, GLFW_OPENGL_PROFILE);
763 if (glfwGetWindowAttrib(window, GLFW_OPENGL_FORWARD_COMPAT))
765 if (glfwGetWindowAttrib(window, GLFW_CONTEXT_DEBUG))
767 if (glfwGetWindowAttrib(window, GLFW_CONTEXT_ROBUSTNESS) == GLFW_LOSE_CONTEXT_ON_RESET)
769 if (glfwGetWindowAttrib(window, GLFW_CONTEXT_NO_ERROR))
791 const int robustness = glfwGetWindowAttrib(window, GLFW_CONTEXT_ROBUSTNESS);
893 glfwDestroyWindow(window);
898 window = glfwCreateWindow(200, 200, "Version", NULL, NULL);
899 if (!window)
933 printf("Vulkan window surface required instance extensions:\n");
941 printf("Vulkan window surface extensions missing\n");
1009 if (glfwCreateWindowSurface(instance, window, NULL, &surface) == VK_SUCCESS)
1011 printf("Vulkan window surface created successfully\n");
1015 printf("Failed to create Vulkan window surface\n");
1095 glfwDestroyWindow(window);