Dynamic window resizing
This commit is contained in:
@@ -16,13 +16,17 @@ class CveWindow {
|
||||
|
||||
bool shouldClose() { return glfwWindowShouldClose(window); };
|
||||
VkExtent2D getExtent() { return { static_cast<uint32_t>(width), static_cast<uint32_t>(height) }; };
|
||||
bool wasWindowResized() { return framebufferResized; };
|
||||
void resetWindowResizedFlag() { framebufferResized = false; };
|
||||
|
||||
void createWindowSurface(VkInstance instance, VkSurfaceKHR *surface);
|
||||
private:
|
||||
static void framebufferResizedCallback(GLFWwindow *window, int width, int height);
|
||||
void initWindow();
|
||||
|
||||
const int width;
|
||||
const int height;
|
||||
int width;
|
||||
int height;
|
||||
bool framebufferResized = false;
|
||||
|
||||
std::string windowName;
|
||||
GLFWwindow *window;
|
||||
|
||||
Reference in New Issue
Block a user