summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-10-16 23:46:15 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-10-16 23:46:15 +0300
commit5e910c7e41d18dab95e34ceb6e620a8958197ae6 (patch)
treebf49c8ca6dd123d0765beef63d5858445dcf24aa /src/window.h
things done
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
new file mode 100644
index 0000000..01ecbb3
--- /dev/null
+++ b/src/window.h
@@ -0,0 +1,23 @@
+#ifndef WINDOW_H
+#define WINDOW_H
+
+#include <SDL2/SDL.h>
+#include <SDL2/SDL_vulkan.h>
+#include <vulkan/vulkan.h>
+
+typedef SDL_Window * window_t;
+
+struct window_info {
+ char *title;
+ int x; int y;
+ int w; int h;
+ Uint32 flags;
+};
+
+window_t window_create(struct window_info *info);
+void window_destroy(window_t window);
+
+int window_extension_info(window_t window, unsigned int *ext_count, const char **extensions);
+int window_create_surface(window_t window, VkInstance instance, VkSurfaceKHR *surface);
+
+#endif