vulkan_test2

annotate 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
rev   line source
nuclear@4 1 #ifndef WSYS_H_
nuclear@4 2 #define WSYS_H_
nuclear@4 3
nuclear@17 4 #include <vulkan/vulkan.h>
nuclear@17 5
nuclear@4 6 /* pass to wsys_process_events */
nuclear@4 7 enum {
nuclear@4 8 WSYS_BLOCKING = 0,
nuclear@4 9 WSYS_NONBLOCK = 1
nuclear@4 10 };
nuclear@4 11
nuclear@4 12 int wsys_create_window(int xsz, int ysz);
nuclear@4 13 void wsys_destroy_window(void);
nuclear@4 14
nuclear@4 15 void wsys_set_window_title(const char *title);
nuclear@4 16 void wsys_get_window_size(int *xsz, int *ysz);
nuclear@4 17
nuclear@4 18 void wsys_display_callback(void (*func)(void));
nuclear@4 19 void wsys_reshape_callback(void (*func)(int, int));
nuclear@4 20 void wsys_keyboard_callback(void (*func)(int, int));
nuclear@4 21 void wsys_mouse_callback(void (*func)(int, int, int, int));
nuclear@4 22 void wsys_motion_callback(void (*func)(int, int));
nuclear@4 23 void wsys_passive_motion_callback(void (*func)(int, int));
nuclear@4 24
nuclear@17 25 void wsys_swap_buffers(VkSemaphore sem_wait);
nuclear@4 26 void wsys_redisplay(void);
nuclear@4 27 void wsys_quit(void);
nuclear@4 28
nuclear@4 29 /* mode: WSYS_BLOCKING or WSYS_NONBLOCK */
nuclear@4 30 int wsys_process_events(int mode);
nuclear@4 31
nuclear@4 32
nuclear@4 33 #endif /* WSYS_H_ */