sgl

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