summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-02-21 12:14:42 -0500
committerRob Clark <robdclark@gmail.com>2017-02-21 13:59:58 -0500
commit2ec69c153a5456758c924e14e70d6544e4d2a866 (patch)
tree79a6f556126ff6d896951a3122858a66f072757d /common.h
parentc6a1571a9b6a55b6d00040bac6172ffb4fd2d3b8 (diff)
downloadkmscube-2ec69c153a5456758c924e14e70d6544e4d2a866.tar.gz
split out get_program() helper
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 */