diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-04-01 14:20:24 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-04-01 22:25:48 +0800 |
commit | fc3ddd4b566380e7684c780450016e3e191a4160 (patch) | |
tree | 539e4eb39fb89a9ebb83116deef9c5d5ebc57e4d /progs/egl/openvg/trivial/eglcommon.h | |
parent | 7f231cab2b7c13ba70d6aa694f74b6d6eee6470f (diff) |
progs/openvg: Move OpenVG demos to a subdirectory of progs/egl.
That is, move
progs/openvg/demos to progs/egl/openvg,
progs/openvg/trivial to progs/egl/openvg/trivial.
Diffstat (limited to 'progs/egl/openvg/trivial/eglcommon.h')
-rw-r--r-- | progs/egl/openvg/trivial/eglcommon.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/progs/egl/openvg/trivial/eglcommon.h b/progs/egl/openvg/trivial/eglcommon.h new file mode 100644 index 0000000000..958dae9f98 --- /dev/null +++ b/progs/egl/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 |