aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-04-29 10:08:04 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-10-08 10:34:53 +0200
commit6c18744d0f99138cb19cd9d1241d7b11c478a944 (patch)
tree41ed6debdfc9287a21b13e5d92df18d4411d782d /include
parente9c1b459f28fb4dce52dd5afa6a1ad7fb00ee5e2 (diff)
opengl: add egl-context.[ch] helpers
Add helper functions to manage opengl contexts using egl. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/ui/egl-context.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ui/egl-context.h b/include/ui/egl-context.h
new file mode 100644
index 0000000000..f004ce11a7
--- /dev/null
+++ b/include/ui/egl-context.h
@@ -0,0 +1,14 @@
+#ifndef EGL_CONTEXT_H
+#define EGL_CONTEXT_H
+
+#include "ui/console.h"
+#include "ui/egl-helpers.h"
+
+QEMUGLContext qemu_egl_create_context(DisplayChangeListener *dcl,
+ QEMUGLParams *params);
+void qemu_egl_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx);
+int qemu_egl_make_context_current(DisplayChangeListener *dcl,
+ QEMUGLContext ctx);
+QEMUGLContext qemu_egl_get_current_context(DisplayChangeListener *dcl);
+
+#endif /* EGL_CONTEXT_H */