summaryrefslogtreecommitdiff
path: root/src/window.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-07-01 14:19:11 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-07-01 14:19:11 -0400
commit871649f7ffd327d317e96cb9f5b83d4bfc145ac9 (patch)
tree8f585a9329c0296bf92160b89e3e447404885e5d /src/window.hpp
parent01cc213bab75a5bc0748e909e3828a00a77c08b0 (diff)
add window
Diffstat (limited to 'src/window.hpp')
-rw-r--r--src/window.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/window.hpp b/src/window.hpp
new file mode 100644
index 0000000..4997327
--- /dev/null
+++ b/src/window.hpp
@@ -0,0 +1,22 @@
+#ifndef PKE_WINDOW_HPP
+#define PKE_WINDOW_HPP
+
+#include <GLFW/glfw3.h>
+#include <vulkan/vulkan.h>
+
+const unsigned int MAX_FRAMES_IN_FLIGHT = 3;
+
+extern GLFWwindow *glfwWindow;
+extern VkInstance vkInstance;
+extern VkPhysicalDevice vkPhysicalDevice;
+extern VkSurfaceKHR vkSurfaceKHR;
+
+struct PKEWindowProperties {
+ unsigned int width = 1280;
+ unsigned int height = 720;
+};
+
+void CreateWindow(PKEWindowProperties *wp);
+void DestroyWindow();
+
+#endif /* PKE_WINDOW_HPP */