sgl
annotate 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 |
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@5 | 20 void (*redisplay)(void); |
nuclear@5 | 21 void (*swap_buffers)(void); |
nuclear@5 | 22 |
nuclear@4 | 23 void (*set_event)(int idx, int enable); |
nuclear@4 | 24 int (*process_events)(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_ */ |