|
|
@ -67,6 +67,9 @@ void Instance::initWindow() { |
|
|
|
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); |
|
|
|
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); |
|
|
|
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); |
|
|
|
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); |
|
|
|
window = glfwCreateWindow(800, 600, "Vulkan Simulation", nullptr, nullptr); |
|
|
|
window = glfwCreateWindow(800, 600, "Vulkan Simulation", nullptr, nullptr); |
|
|
|
|
|
|
|
glfwSetFramebufferSizeCallback(window, [](GLFWwindow* window, int width, int height) { |
|
|
|
|
|
|
|
instance->windowResized = true; |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Instance::createInstance() { |
|
|
|
void Instance::createInstance() { |
|
|
|