sgl

view include/sgl.h @ 1:0c13a30be2c1

wsys
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 11 May 2011 05:34:37 +0300
parents 40491760d6e3
children 648f8604d2b2
line source
1 #ifndef SGL_H_
2 #define SGL_H_
4 #define SGL_DOUBLE 1
5 #define SGL_DEPTH 2
6 #define SGL_STENCIL 4
7 #define SGL_STEREO 8
9 enum {
10 SGL_CREATE,
11 SGL_CLOSE,
12 SGL_DISPLAY,
13 SGL_RESHAPE,
14 SGL_KEYBOARD,
15 SGL_MOUSE,
16 SGL_MOTION,
17 SGL_PASSIVE,
18 SGL_IDLE,
20 SGL_NUM_CALLBACKS
21 };
23 int sgl_init(void);
24 void sgl_shutdown(void);
26 int sgl_set_video_mode(int xsz, int ysz, int bpp);
27 int sgl_get_video_mode(int *xsz, int *ysz, int *bpp);
29 int sgl_window(int xsz, int ysz, unsigned int mode);
30 void sgl_close_window(int win);
32 int sgl_push_callbacks(void);
33 int sgl_pop_callbacks(void);
34 void sgl_clear_callbacks(void);
35 void (*sgl_callback(int idx, void (*func)()))();
37 #endif /* SGL_H_ */