summaryrefslogtreecommitdiff
path: root/test/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/setup.h')
-rw-r--r--test/setup.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/setup.h b/test/setup.h
new file mode 100644
index 0000000..fe453ad
--- /dev/null
+++ b/test/setup.h
@@ -0,0 +1,19 @@
+#ifndef SETUP_H
+#define SETUP_H
+
+void die(const char *msg);
+
+struct state {
+ EGLDisplay display;
+ EGLSurface surface;
+ EGLConfig config;
+ EGLContext context;
+ int width;
+ int height;
+};
+
+typedef int (*render_func_t)(struct state *state);
+
+int setup(int argc, char *argv[], render_func_t render);
+
+#endif