summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.h b/common.h
index 8f3a827..fbbed23 100644
--- a/common.h
+++ b/common.h
@@ -26,6 +26,12 @@
#include <gbm.h>
+#define GL_GLEXT_PROTOTYPES 1
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
+
struct gbm {
struct gbm_device *dev;
struct gbm_surface *surface;
@@ -33,4 +39,8 @@ struct gbm {
const struct gbm * init_gbm(int drm_fd, int w, int h);
+
+int create_program(const char *vs_src, const char *fs_src);
+int link_program(unsigned program);
+
#endif /* _COMMON_H */