diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |