1#ifndef EGLCOMMON_H 2#define EGLCOMMON_H 3 4typedef void (*init_func)(void); 5typedef void (*reshape_func)(int, int); 6typedef void (*draw_func)(void); 7typedef int (*key_func)(unsigned key); 8 9 10void set_window_alpha_size(int size); 11void set_window_size(int width, int height); 12int window_width(void); 13int window_height(void); 14 15int run(int argc, char **argv, 16 init_func init, 17 reshape_func resh, 18 draw_func draw, 19 key_func key); 20 21#endif 22