aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-31 19:22:23 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-03-31 19:22:23 +0200
commit677fee9d0277c990e19760e1543ed07ed5115a07 (patch)
treebc847b14c279a1e6051d936afd0ee66cec00ca9b /gfx.h
parent6721e3612de2c9a3f7b6f94be6599ccb0e0eaa88 (diff)
downloadfbida-677fee9d0277c990e19760e1543ed07ed5115a07.tar.gz
opengl renderer
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);