#ifndef MY_EGL_H #define MY_EGL_H #include #include "common.h" struct egl { EGLDisplay display; EGLConfig config; EGLContext context; EGLSurface surface; void (*draw)(); }; void init_egl(struct egl *egl, const struct gbm *gbm); void deinit_egl(struct egl *egl); void setup_egl_draw_loop(struct egl *egl, void (*draw_func)()); #endif /* MY_EGL_H */