sgl

diff include/sgl.h @ 4:648f8604d2b2

cont. x11 module
author John Tsiombikas <nuclear@siggraph.org>
date Thu, 12 May 2011 11:04:10 +0300
parents 0c13a30be2c1
children 0570e27e5ebc
line diff
     1.1 --- a/include/sgl.h	Wed May 11 09:09:43 2011 +0300
     1.2 +++ b/include/sgl.h	Thu May 12 11:04:10 2011 +0300
     1.3 @@ -5,6 +5,7 @@
     1.4  #define SGL_DEPTH		2
     1.5  #define SGL_STENCIL		4
     1.6  #define SGL_STEREO		8
     1.7 +#define SGL_MULTISAMPLE	16
     1.8  
     1.9  enum {
    1.10  	SGL_CREATE,
    1.11 @@ -23,15 +24,22 @@
    1.12  int sgl_init(void);
    1.13  void sgl_shutdown(void);
    1.14  
    1.15 -int sgl_set_video_mode(int xsz, int ysz, int bpp);
    1.16 -int sgl_get_video_mode(int *xsz, int *ysz, int *bpp);
    1.17 +int sgl_set_video_mode(int xsz, int ysz);
    1.18 +int sgl_get_video_mode(int *xsz, int *ysz);
    1.19  
    1.20 -int sgl_window(int xsz, int ysz, unsigned int mode);
    1.21 +int sgl_create_window(int xsz, int ysz, unsigned int mode);
    1.22  void sgl_close_window(int win);
    1.23  
    1.24 +int sgl_set_active(int id);
    1.25 +int sgl_set_title(const char *str);
    1.26 +
    1.27 +int sgl_process_events(void);
    1.28 +int sgl_event_loop(void);
    1.29 +
    1.30  int sgl_push_callbacks(void);
    1.31  int sgl_pop_callbacks(void);
    1.32  void sgl_clear_callbacks(void);
    1.33 -void (*sgl_callback(int idx, void (*func)()))();
    1.34 +void sgl_set_callback(int idx, void (*func)());
    1.35 +void (*sgl_get_callback(int idx))();
    1.36  
    1.37  #endif	/* SGL_H_ */