sgl

annotate src/wsys.h @ 12:bf34fa677960

- fixed mac issues.
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 May 2011 12:02:22 +0300
parents 0570e27e5ebc
children
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@7 23 int (*get_modifiers)(void);
nuclear@7 24
nuclear@4 25 void (*set_event)(int idx, int enable);
nuclear@4 26 int (*process_events)(void);
nuclear@4 27
nuclear@1 28 struct wsys_module *next;
nuclear@1 29 };
nuclear@1 30
nuclear@1 31 int sgl_register_module(struct wsys_module *ws);
nuclear@3 32 void sgl_sort_modules(void);
nuclear@7 33 void sgl_print_modules(void);
nuclear@1 34 struct wsys_module *sgl_wsys_module(void);
nuclear@1 35
nuclear@1 36 void dbg(void);
nuclear@1 37
nuclear@1 38 #endif /* WSYS_H_ */