From 7ced9e9f6da2257224591b91727cfeee4f3977fb Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 6 Jan 2015 15:40:00 +0100 Subject: ui: add egl-helpers Add helper functions to initialize OpenGL using egl. Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- include/ui/egl-helpers.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/ui/egl-helpers.h (limited to 'include/ui') diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h new file mode 100644 index 0000000..5ad5dc3 --- /dev/null +++ b/include/ui/egl-helpers.h @@ -0,0 +1,16 @@ +#ifndef EGL_HELPERS_H +#define EGL_HELPERS_H + +#include +#include + +extern EGLDisplay *qemu_egl_display; +extern EGLConfig qemu_egl_config; + +EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win); + +int qemu_egl_init_dpy(EGLNativeDisplayType dpy, bool gles, bool debug); +EGLContext qemu_egl_init_ctx(void); +bool qemu_egl_has_ext(const char *haystack, const char *needle); + +#endif /* EGL_HELPERS_H */ -- cgit v1.1