annotate 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 |
rev |
line source |
nuclear@0
|
1 #ifndef SGL_H_
|
nuclear@0
|
2 #define SGL_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 #define SGL_DOUBLE 1
|
nuclear@0
|
5 #define SGL_DEPTH 2
|
nuclear@0
|
6 #define SGL_STENCIL 4
|
nuclear@0
|
7 #define SGL_STEREO 8
|
nuclear@0
|
8
|
nuclear@0
|
9 enum {
|
nuclear@0
|
10 SGL_CREATE,
|
nuclear@0
|
11 SGL_CLOSE,
|
nuclear@0
|
12 SGL_DISPLAY,
|
nuclear@0
|
13 SGL_RESHAPE,
|
nuclear@0
|
14 SGL_KEYBOARD,
|
nuclear@0
|
15 SGL_MOUSE,
|
nuclear@0
|
16 SGL_MOTION,
|
nuclear@0
|
17 SGL_PASSIVE,
|
nuclear@0
|
18 SGL_IDLE,
|
nuclear@0
|
19
|
nuclear@0
|
20 SGL_NUM_CALLBACKS
|
nuclear@0
|
21 };
|
nuclear@0
|
22
|
nuclear@1
|
23 int sgl_init(void);
|
nuclear@1
|
24 void sgl_shutdown(void);
|
nuclear@1
|
25
|
nuclear@0
|
26 int sgl_set_video_mode(int xsz, int ysz, int bpp);
|
nuclear@0
|
27 int sgl_get_video_mode(int *xsz, int *ysz, int *bpp);
|
nuclear@0
|
28
|
nuclear@1
|
29 int sgl_window(int xsz, int ysz, unsigned int mode);
|
nuclear@1
|
30 void sgl_close_window(int win);
|
nuclear@0
|
31
|
nuclear@0
|
32 int sgl_push_callbacks(void);
|
nuclear@0
|
33 int sgl_pop_callbacks(void);
|
nuclear@0
|
34 void sgl_clear_callbacks(void);
|
nuclear@0
|
35 void (*sgl_callback(int idx, void (*func)()))();
|
nuclear@0
|
36
|
nuclear@0
|
37 #endif /* SGL_H_ */
|