sgl
view src/wsys.h @ 28:f5e83de47903
added --prefix and --without-whatever args in configure script
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 27 Jun 2011 01:59:26 +0300 |
parents | 0570e27e5ebc |
children |
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 int (*get_modifiers)(void);
25 void (*set_event)(int idx, int enable);
26 int (*process_events)(void);
28 struct wsys_module *next;
29 };
31 int sgl_register_module(struct wsys_module *ws);
32 void sgl_sort_modules(void);
33 void sgl_print_modules(void);
34 struct wsys_module *sgl_wsys_module(void);
36 void dbg(void);
38 #endif /* WSYS_H_ */