diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-04-29 10:08:04 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-10-08 10:34:53 +0200 |
commit | 6c18744d0f99138cb19cd9d1241d7b11c478a944 (patch) | |
tree | 41ed6debdfc9287a21b13e5d92df18d4411d782d /include/ui | |
parent | e9c1b459f28fb4dce52dd5afa6a1ad7fb00ee5e2 (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/ui')
-rw-r--r-- | include/ui/egl-context.h | 14 |
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 */ |