msmouse: add MouseState, unregister handler on close
[qemu/kevin.git] / include / ui / egl-helpers.h
blob03fcf4bba2663256681fd8ef6075c2732525e819
1 #ifndef EGL_HELPERS_H
2 #define EGL_HELPERS_H
4 #include <epoxy/gl.h>
5 #include <epoxy/egl.h>
6 #include <gbm.h>
8 extern EGLDisplay *qemu_egl_display;
9 extern EGLConfig qemu_egl_config;
11 #ifdef CONFIG_OPENGL_DMABUF
13 extern int qemu_egl_rn_fd;
14 extern struct gbm_device *qemu_egl_rn_gbm_dev;
15 extern EGLContext qemu_egl_rn_ctx;
17 int qemu_egl_rendernode_open(void);
18 int egl_rendernode_init(void);
19 int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc);
21 #endif
23 EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win);
25 int qemu_egl_init_dpy(EGLNativeDisplayType dpy, bool gles, bool debug);
26 EGLContext qemu_egl_init_ctx(void);
28 #endif /* EGL_HELPERS_H */