blob: 958dae9f98df2ef483a5f13e38d7b113ae4f45a4 [file] [log] [blame]
Zack Rusin54324d92009-05-01 19:08:32 -04001#ifndef EGLCOMMON_H
2#define EGLCOMMON_H
3
4typedef void (*init_func)();
5typedef void (*reshape_func)(int, int);
6typedef void (*draw_func)();
7typedef int (*key_func)(unsigned key);
8
9
10void set_window_size(int width, int height);
11int window_width(void);
12int window_height(void);
13
14int run(int argc, char **argv,
15 init_func init,
16 reshape_func resh,
17 draw_func draw,
18 key_func key);
19
20#endif