2015-01-06 17:40:00 +03:00
|
|
|
#ifndef EGL_HELPERS_H
|
|
|
|
#define EGL_HELPERS_H
|
|
|
|
|
|
|
|
#include <epoxy/gl.h>
|
|
|
|
#include <epoxy/egl.h>
|
2015-10-12 13:03:49 +03:00
|
|
|
#include <gbm.h>
|
2015-01-06 17:40:00 +03:00
|
|
|
|
|
|
|
extern EGLDisplay *qemu_egl_display;
|
|
|
|
extern EGLConfig qemu_egl_config;
|
|
|
|
|
2015-10-12 13:03:49 +03:00
|
|
|
#ifdef CONFIG_OPENGL_DMABUF
|
|
|
|
|
|
|
|
extern int qemu_egl_rn_fd;
|
|
|
|
extern struct gbm_device *qemu_egl_rn_gbm_dev;
|
|
|
|
extern EGLContext qemu_egl_rn_ctx;
|
|
|
|
|
2017-02-12 14:21:18 +03:00
|
|
|
int egl_rendernode_init(const char *rendernode);
|
2015-10-12 13:03:49 +03:00
|
|
|
int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2015-01-06 17:40:00 +03:00
|
|
|
EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win);
|
|
|
|
|
2017-05-05 13:40:58 +03:00
|
|
|
int qemu_egl_init_dpy_x11(EGLNativeDisplayType dpy);
|
|
|
|
int qemu_egl_init_dpy_mesa(EGLNativeDisplayType dpy);
|
2015-01-06 17:40:00 +03:00
|
|
|
EGLContext qemu_egl_init_ctx(void);
|
|
|
|
|
|
|
|
#endif /* EGL_HELPERS_H */
|