diff options
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 23 |
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 |