aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx.h b/gfx.h
index 16d25fa..f3602c6 100644
--- a/gfx.h
+++ b/gfx.h
@@ -1,6 +1,8 @@
#include <stdbool.h>
#include <inttypes.h>
+#include <epoxy/egl.h>
+
typedef struct gfxstate gfxstate;
struct gfxstate {
@@ -15,6 +17,11 @@ struct gfxstate {
uint32_t rlen, glen, blen, tlen;
uint32_t roff, goff, boff, toff;
+ /* egl */
+ EGLDisplay dpy;
+ EGLContext ctx;
+ EGLSurface surface;
+
/* calls */
void (*restore_display)(void);
void (*cleanup_display)(void);