nuclear@4: #ifndef WSYS_H_ nuclear@4: #define WSYS_H_ nuclear@4: nuclear@4: /* pass to wsys_process_events */ nuclear@4: enum { nuclear@4: WSYS_BLOCKING = 0, nuclear@4: WSYS_NONBLOCK = 1 nuclear@4: }; nuclear@4: nuclear@4: int wsys_create_window(int xsz, int ysz); nuclear@4: void wsys_destroy_window(void); nuclear@4: nuclear@4: void wsys_set_window_title(const char *title); nuclear@4: void wsys_get_window_size(int *xsz, int *ysz); nuclear@4: nuclear@4: void wsys_display_callback(void (*func)(void)); nuclear@4: void wsys_reshape_callback(void (*func)(int, int)); nuclear@4: void wsys_keyboard_callback(void (*func)(int, int)); nuclear@4: void wsys_mouse_callback(void (*func)(int, int, int, int)); nuclear@4: void wsys_motion_callback(void (*func)(int, int)); nuclear@4: void wsys_passive_motion_callback(void (*func)(int, int)); nuclear@4: nuclear@4: void wsys_swap_buffers(void); nuclear@4: void wsys_redisplay(void); nuclear@4: void wsys_quit(void); nuclear@4: nuclear@4: /* mode: WSYS_BLOCKING or WSYS_NONBLOCK */ nuclear@4: int wsys_process_events(int mode); nuclear@4: nuclear@4: nuclear@4: #endif /* WSYS_H_ */