sgl

view src/wsys.h @ 5:0570e27e5ebc

pretty much done with the basic functionality and GLX shit
author John Tsiombikas <nuclear@siggraph.org>
date Fri, 13 May 2011 07:49:47 +0300
parents 648f8604d2b2
children edbfc96fe80d
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);
12 int (*get_vidmode)(int*, int*);
14 int (*create_window)(int, int, unsigned int);
15 void (*close_window)(int);
17 int (*set_active)(int);
18 int (*set_title)(const char*);
20 void (*redisplay)(void);
21 void (*swap_buffers)(void);
23 void (*set_event)(int idx, int enable);
24 int (*process_events)(void);
26 struct wsys_module *next;
27 };
29 int sgl_register_module(struct wsys_module *ws);
30 void sgl_sort_modules(void);
31 struct wsys_module *sgl_wsys_module(void);
33 void dbg(void);
35 #endif /* WSYS_H_ */