sgl
diff include/sgl.h @ 5:0570e27e5ebc
pretty much done with the basic functionality and GLX shit
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 13 May 2011 07:49:47 +0300 |
parents | 648f8604d2b2 |
children | 0cb438c86b98 |
line diff
1.1 --- a/include/sgl.h Thu May 12 11:04:10 2011 +0300 1.2 +++ b/include/sgl.h Fri May 13 07:49:47 2011 +0300 1.3 @@ -21,8 +21,14 @@ 1.4 SGL_NUM_CALLBACKS 1.5 }; 1.6 1.7 +enum { 1.8 + SGL_LEFT_BUTTON, 1.9 + SGL_MIDDLE_BUTTON, 1.10 + SGL_RIGHT_BUTTON 1.11 +}; 1.12 + 1.13 int sgl_init(void); 1.14 -void sgl_shutdown(void); 1.15 +void sgl_quit(void); 1.16 1.17 int sgl_set_video_mode(int xsz, int ysz); 1.18 int sgl_get_video_mode(int *xsz, int *ysz); 1.19 @@ -33,8 +39,11 @@ 1.20 int sgl_set_active(int id); 1.21 int sgl_set_title(const char *str); 1.22 1.23 +void sgl_redisplay(void); 1.24 +void sgl_swap_buffers(void); 1.25 + 1.26 int sgl_process_events(void); 1.27 -int sgl_event_loop(void); 1.28 +void sgl_event_loop(void); 1.29 1.30 int sgl_push_callbacks(void); 1.31 int sgl_pop_callbacks(void);