summaryrefslogtreecommitdiffstats
path: root/progs/openvg/trivial/eglcommon.h
blob: 958dae9f98df2ef483a5f13e38d7b113ae4f45a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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