sgl

view src/wsys.h @ 3:1b6c5dadb460

started hacking the X11 module
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 11 May 2011 09:09:43 +0300
parents 0c13a30be2c1
children 648f8604d2b2
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 (*create_window)(int, int, unsigned int);
14 void (*close_window)(int);
16 struct wsys_module *next;
17 };
19 int sgl_register_module(struct wsys_module *ws);
20 void sgl_sort_modules(void);
21 struct wsys_module *sgl_wsys_module(void);
23 void dbg(void);
25 #endif /* WSYS_H_ */