sgl

view 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 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_set_video_mode(int xsz, int ysz, int bpp);
24 int sgl_get_video_mode(int *xsz, int *ysz, int *bpp);
26 int sgl_window(int x, int y, unsigned int mode);
27 void sgl_close(int win);
29 int sgl_push_callbacks(void);
30 int sgl_pop_callbacks(void);
31 void sgl_clear_callbacks(void);
32 void (*sgl_callback(int idx, void (*func)()))();
34 #endif /* SGL_H_ */