sgl

view src/wsys.h @ 1:0c13a30be2c1

wsys
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 11 May 2011 05:34:37 +0300
parents
children 1b6c5dadb460
line source
1 #ifndef WSYS_H_
2 #define WSYS_H_
4 struct wsys_module {
5 char *name;
6 int prio;
8 int (*init)(void);
9 void (*shutdown)(void);
11 int (*set_vidmode)(int, int, int);
12 int (*get_vidmode)(int*, int*, int*);
13 int (*window)(int, int, unsigned int);
14 void (*close_win)(int);
16 struct wsys_module *next;
17 };
19 int sgl_register_module(struct wsys_module *ws);
20 struct wsys_module *sgl_wsys_module(void);
22 void dbg(void);
24 #endif /* WSYS_H_ */