sgl

diff include/sgl.h @ 6:0cb438c86b98

X11 sounds about ready
author John Tsiombikas <nuclear@siggraph.org>
date Fri, 13 May 2011 09:44:21 +0300
parents 0570e27e5ebc
children edbfc96fe80d
line diff
     1.1 --- a/include/sgl.h	Fri May 13 07:49:47 2011 +0300
     1.2 +++ b/include/sgl.h	Fri May 13 09:44:21 2011 +0300
     1.3 @@ -7,6 +7,16 @@
     1.4  #define SGL_STEREO		8
     1.5  #define SGL_MULTISAMPLE	16
     1.6  
     1.7 +typedef void (*sgl_create_callback_t)(int);
     1.8 +typedef void (*sgl_close_callback_t)(int);
     1.9 +typedef void (*sgl_display_callback_t)(void);
    1.10 +typedef void (*sgl_reshape_callback_t)(int, int);
    1.11 +typedef void (*sgl_keyboard_callback_t)(int, int);
    1.12 +typedef void (*sgl_mouse_callback_t)(int, int, int, int, int);
    1.13 +typedef void (*sgl_motion_callback_t)(int, int, int);
    1.14 +typedef void (*sgl_passive_callback_t)(int, int, int);
    1.15 +typedef void (*sgl_idle_callback_t)(void);
    1.16 +
    1.17  enum {
    1.18  	SGL_CREATE,
    1.19  	SGL_CLOSE,
    1.20 @@ -51,4 +61,14 @@
    1.21  void sgl_set_callback(int idx, void (*func)());
    1.22  void (*sgl_get_callback(int idx))();
    1.23  
    1.24 +void sgl_create_callback(sgl_create_callback_t func);
    1.25 +void sgl_close_callback(sgl_close_callback_t func);
    1.26 +void sgl_display_callback(sgl_display_callback_t func);
    1.27 +void sgl_reshape_callback(sgl_reshape_callback_t func);
    1.28 +void sgl_keyboard_callback(sgl_keyboard_callback_t func);
    1.29 +void sgl_mouse_callback(sgl_mouse_callback_t func);
    1.30 +void sgl_motion_callback(sgl_motion_callback_t func);
    1.31 +void sgl_passive_callback(sgl_passive_callback_t func);
    1.32 +void sgl_idle_callback(sgl_idle_callback_t func);
    1.33 +
    1.34  #endif	/* SGL_H_ */