vulkan_test2

view src/wsys.h @ 4:c31c4115d44a

test 2, open window, create queue, etc ...
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 22 Sep 2017 15:26:29 +0300
parents
children f8bd29f124a8
line source
1 #ifndef WSYS_H_
2 #define WSYS_H_
4 /* pass to wsys_process_events */
5 enum {
6 WSYS_BLOCKING = 0,
7 WSYS_NONBLOCK = 1
8 };
10 int wsys_create_window(int xsz, int ysz);
11 void wsys_destroy_window(void);
13 void wsys_set_window_title(const char *title);
14 void wsys_get_window_size(int *xsz, int *ysz);
16 void wsys_display_callback(void (*func)(void));
17 void wsys_reshape_callback(void (*func)(int, int));
18 void wsys_keyboard_callback(void (*func)(int, int));
19 void wsys_mouse_callback(void (*func)(int, int, int, int));
20 void wsys_motion_callback(void (*func)(int, int));
21 void wsys_passive_motion_callback(void (*func)(int, int));
23 void wsys_swap_buffers(void);
24 void wsys_redisplay(void);
25 void wsys_quit(void);
27 /* mode: WSYS_BLOCKING or WSYS_NONBLOCK */
28 int wsys_process_events(int mode);
31 #endif /* WSYS_H_ */