diff options
author | Zack Rusin <[email protected]> | 2009-05-01 19:08:32 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2009-05-01 19:08:32 -0400 |
commit | 54324d9e0c6956bdc7bc9b0620fe53c8e6b66a04 (patch) | |
tree | 0d2868ebad1c0b367a7903fa9216fc7f2ca5bd5b /progs/openvg/demos/eglcommon.h | |
parent | d6318ba8a856c5a61c402fce43c3fa56c414064a (diff) |
vg: remove a silly demo and add a bit better one
Diffstat (limited to 'progs/openvg/demos/eglcommon.h')
-rw-r--r-- | progs/openvg/demos/eglcommon.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/progs/openvg/demos/eglcommon.h b/progs/openvg/demos/eglcommon.h new file mode 100644 index 00000000000..958dae9f98d --- /dev/null +++ b/progs/openvg/demos/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 |