sgl
diff include/sgl.h @ 0:40491760d6e3
starting work on SimplyGL
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Tue, 10 May 2011 00:06:20 +0300 |
parents | |
children | 0c13a30be2c1 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/include/sgl.h Tue May 10 00:06:20 2011 +0300 1.3 @@ -0,0 +1,34 @@ 1.4 +#ifndef SGL_H_ 1.5 +#define SGL_H_ 1.6 + 1.7 +#define SGL_DOUBLE 1 1.8 +#define SGL_DEPTH 2 1.9 +#define SGL_STENCIL 4 1.10 +#define SGL_STEREO 8 1.11 + 1.12 +enum { 1.13 + SGL_CREATE, 1.14 + SGL_CLOSE, 1.15 + SGL_DISPLAY, 1.16 + SGL_RESHAPE, 1.17 + SGL_KEYBOARD, 1.18 + SGL_MOUSE, 1.19 + SGL_MOTION, 1.20 + SGL_PASSIVE, 1.21 + SGL_IDLE, 1.22 + 1.23 + SGL_NUM_CALLBACKS 1.24 +}; 1.25 + 1.26 +int sgl_set_video_mode(int xsz, int ysz, int bpp); 1.27 +int sgl_get_video_mode(int *xsz, int *ysz, int *bpp); 1.28 + 1.29 +int sgl_window(int x, int y, unsigned int mode); 1.30 +void sgl_close(int win); 1.31 + 1.32 +int sgl_push_callbacks(void); 1.33 +int sgl_pop_callbacks(void); 1.34 +void sgl_clear_callbacks(void); 1.35 +void (*sgl_callback(int idx, void (*func)()))(); 1.36 + 1.37 +#endif /* SGL_H_ */