summaryrefslogtreecommitdiff
path: root/src/window.h
blob: 01ecbb3d151cd5c52ce17ba656f9115cb6c0a9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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