1 #ifndef EGL_HELPERS_H 2 #define EGL_HELPERS_H 3 4 #include <epoxy/gl.h> 5 #include <epoxy/egl.h> 6 #include <gbm.h> 7 8 extern EGLDisplay *qemu_egl_display; 9 extern EGLConfig qemu_egl_config; 10 11 #ifdef CONFIG_OPENGL_DMABUF 12 13 extern int qemu_egl_rn_fd; 14 extern struct gbm_device *qemu_egl_rn_gbm_dev; 15 extern EGLContext qemu_egl_rn_ctx; 16 17 int egl_rendernode_init(const char *rendernode); 18 int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc); 19 20 #endif 21 22 EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win); 23 24 int qemu_egl_init_dpy(EGLNativeDisplayType dpy, bool gles, bool debug); 25 EGLContext qemu_egl_init_ctx(void); 26 27 #endif /* EGL_HELPERS_H */ 28