sgl

diff src/wsys.h @ 1:0c13a30be2c1

wsys
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 11 May 2011 05:34:37 +0300
parents
children 1b6c5dadb460
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/wsys.h	Wed May 11 05:34:37 2011 +0300
     1.3 @@ -0,0 +1,24 @@
     1.4 +#ifndef WSYS_H_
     1.5 +#define WSYS_H_
     1.6 +
     1.7 +struct wsys_module {
     1.8 +	char *name;
     1.9 +	int prio;
    1.10 +
    1.11 +	int (*init)(void);
    1.12 +	void (*shutdown)(void);
    1.13 +
    1.14 +	int (*set_vidmode)(int, int, int);
    1.15 +	int (*get_vidmode)(int*, int*, int*);
    1.16 +	int (*window)(int, int, unsigned int);
    1.17 +	void (*close_win)(int);
    1.18 +
    1.19 +	struct wsys_module *next;
    1.20 +};
    1.21 +
    1.22 +int sgl_register_module(struct wsys_module *ws);
    1.23 +struct wsys_module *sgl_wsys_module(void);
    1.24 +
    1.25 +void dbg(void);
    1.26 +
    1.27 +#endif	/* WSYS_H_ */