diff options
author | Zack Rusin <zackr@vmware.com> | 2009-07-06 21:43:26 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2009-07-06 21:43:26 -0400 |
commit | edb02671704aeb60e3eeaa7f58c73f4845c5b7e2 (patch) | |
tree | 0bd971c7c8aa4639fcbd5b060f560d978b9f0cf3 /progs/openvg/trivial/eglcommon.h | |
parent | 124a6b1958c630ea049025e2b72547096fdc8f2c (diff) | |
parent | 54324d9e0c6956bdc7bc9b0620fe53c8e6b66a04 (diff) |
Merge commit 'origin/openvg-1.0'
Diffstat (limited to 'progs/openvg/trivial/eglcommon.h')
-rw-r--r-- | progs/openvg/trivial/eglcommon.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 |