From 544dd4b11f7be76bb00fe29a60eaf2772dcc69ca Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Fri, 1 May 2009 12:41:38 -0400 Subject: OpenVG 1.0 State Tracker Import of the OpenVG 1.0 state tracker for Gallium. --- progs/openvg/trivial/eglcommon.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 progs/openvg/trivial/eglcommon.h (limited to 'progs/openvg/trivial/eglcommon.h') diff --git a/progs/openvg/trivial/eglcommon.h b/progs/openvg/trivial/eglcommon.h new file mode 100644 index 0000000000..958dae9f98 --- /dev/null +++ b/progs/openvg/trivial/eglcommon.h @@ -0,0 +1,20 @@ +#ifndef EGLCOMMON_H +#define EGLCOMMON_H + +typedef void (*init_func)(); +typedef void (*reshape_func)(int, int); +typedef void (*draw_func)(); +typedef int (*key_func)(unsigned key); + + +void set_window_size(int width, int height); +int window_width(void); +int window_height(void); + +int run(int argc, char **argv, + init_func init, + reshape_func resh, + draw_func draw, + key_func key); + +#endif -- cgit v1.2.3