From 5e910c7e41d18dab95e34ceb6e620a8958197ae6 Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 16 Oct 2023 23:46:15 +0300 Subject: things done --- src/window.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/window.h (limited to 'src/window.h') 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 +#include +#include + +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 -- cgit v1.2.3