sgl
annotate src/wsys.h @ 4:648f8604d2b2
cont. x11 module
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Thu, 12 May 2011 11:04:10 +0300 |
parents | 1b6c5dadb460 |
children | 0570e27e5ebc |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef WSYS_H_ |
nuclear@1 | 2 #define WSYS_H_ |
nuclear@1 | 3 |
nuclear@1 | 4 struct wsys_module { |
nuclear@1 | 5 char *name; |
nuclear@1 | 6 int prio; |
nuclear@1 | 7 |
nuclear@1 | 8 int (*init)(void); |
nuclear@1 | 9 void (*shutdown)(void); |
nuclear@1 | 10 |
nuclear@4 | 11 int (*set_vidmode)(int, int); |
nuclear@4 | 12 int (*get_vidmode)(int*, int*); |
nuclear@4 | 13 |
nuclear@3 | 14 int (*create_window)(int, int, unsigned int); |
nuclear@3 | 15 void (*close_window)(int); |
nuclear@1 | 16 |
nuclear@4 | 17 int (*set_active)(int); |
nuclear@4 | 18 int (*set_title)(const char*); |
nuclear@4 | 19 |
nuclear@4 | 20 void (*set_event)(int idx, int enable); |
nuclear@4 | 21 int (*process_events)(void); |
nuclear@4 | 22 |
nuclear@4 | 23 void (*redisplay)(void); |
nuclear@4 | 24 void (*swap_buffers)(void); |
nuclear@4 | 25 |
nuclear@1 | 26 struct wsys_module *next; |
nuclear@1 | 27 }; |
nuclear@1 | 28 |
nuclear@1 | 29 int sgl_register_module(struct wsys_module *ws); |
nuclear@3 | 30 void sgl_sort_modules(void); |
nuclear@1 | 31 struct wsys_module *sgl_wsys_module(void); |
nuclear@1 | 32 |
nuclear@1 | 33 void dbg(void); |
nuclear@1 | 34 |
nuclear@1 | 35 #endif /* WSYS_H_ */ |