/* -------------------------------------------------------------------------- */
-#include <math.h>
-
-#include <EGL/egl.h>
-#include <GLES2/gl2.h>
-
#define WINDOW_WIDTH 640
#define WINDOW_HEIGHT 480
return 1;
}
+EXPORT int mid_module_tick(void)
+{
+ if(!drawStuff(WINDOW_WIDTH, WINDOW_HEIGHT)) destroyEGL();
+ return 1;
+}
+
/* -------------------------------------------------------------------------- */
int handles_resource(char* name)
eglSwapBuffers(eglDisplay, eglSurface);
- angle += .001f;
+ angle += .007f;
return !isEGLError("drawStuff");
}
/* ------------------------------------------------------------- */
-#include "X11/Xutil.h"
+#include <X11/Xutil.h>
Window x11Window = 0;
Display* x11Display = 0;