vulkan_test2

view src/wsys.h @ 17:f8bd29f124a8

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 27 Jun 2018 01:57:55 +0300
parents c31c4115d44a
children
line source
1 #ifndef WSYS_H_
2 #define WSYS_H_
4 #include <vulkan/vulkan.h>
6 /* pass to wsys_process_events */
7 enum {
8 WSYS_BLOCKING = 0,
9 WSYS_NONBLOCK = 1
10 };
12 int wsys_create_window(int xsz, int ysz);
13 void wsys_destroy_window(void);
15 void wsys_set_window_title(const char *title);
16 void wsys_get_window_size(int *xsz, int *ysz);
18 void wsys_display_callback(void (*func)(void));
19 void wsys_reshape_callback(void (*func)(int, int));
20 void wsys_keyboard_callback(void (*func)(int, int));
21 void wsys_mouse_callback(void (*func)(int, int, int, int));
22 void wsys_motion_callback(void (*func)(int, int));
23 void wsys_passive_motion_callback(void (*func)(int, int));
25 void wsys_swap_buffers(VkSemaphore sem_wait);
26 void wsys_redisplay(void);
27 void wsys_quit(void);
29 /* mode: WSYS_BLOCKING or WSYS_NONBLOCK */
30 int wsys_process_events(int mode);
33 #endif /* WSYS_H_ */