ndktest

diff src/app.h @ 0:1310df7cdf25

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Apr 2015 20:54:02 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/app.h	Thu Apr 23 20:54:02 2015 +0300
     1.3 @@ -0,0 +1,23 @@
     1.4 +#ifndef APP_H_
     1.5 +#define APP_H_
     1.6 +
     1.7 +#include <EGL/egl.h>
     1.8 +
     1.9 +#ifndef APP_NAME
    1.10 +#define APP_NAME	"gles_test"
    1.11 +#endif
    1.12 +
    1.13 +EGLDisplay dpy;
    1.14 +EGLSurface surf;
    1.15 +EGLContext ctx;
    1.16 +
    1.17 +int app_init(void);
    1.18 +void app_cleanup(void);
    1.19 +
    1.20 +void app_display(void);
    1.21 +void app_resize(int x, int y);
    1.22 +
    1.23 +void app_touch(int id, int press, int x, int y);
    1.24 +void app_drag(int id, int x, int y);
    1.25 +
    1.26 +#endif	/* APP_H_ */