sgl
annotate src/wsys.h @ 1:0c13a30be2c1
wsys
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Wed, 11 May 2011 05:34:37 +0300 |
parents | |
children | 1b6c5dadb460 |
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@1 | 11 int (*set_vidmode)(int, int, int); |
nuclear@1 | 12 int (*get_vidmode)(int*, int*, int*); |
nuclear@1 | 13 int (*window)(int, int, unsigned int); |
nuclear@1 | 14 void (*close_win)(int); |
nuclear@1 | 15 |
nuclear@1 | 16 struct wsys_module *next; |
nuclear@1 | 17 }; |
nuclear@1 | 18 |
nuclear@1 | 19 int sgl_register_module(struct wsys_module *ws); |
nuclear@1 | 20 struct wsys_module *sgl_wsys_module(void); |
nuclear@1 | 21 |
nuclear@1 | 22 void dbg(void); |
nuclear@1 | 23 |
nuclear@1 | 24 #endif /* WSYS_H_ */ |