From 0eb50c273766be80f0a6fde635c3a2bdabd199fb Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 10 Oct 2017 15:54:52 +0200 Subject: egl-helpers: add egl_texture_blit and egl_texture_blend egl_texture_blit() blits a texture, simliar to egl_fb_blit() but by rendering the texture to the screen instead of using a framebuffer blit. egl_texture_blend() renders a texture with alpha blending, will be used to render the cursor to the screen. Signed-off-by: Gerd Hoffmann Message-id: 20171010135453.6704-6-kraxel@redhat.com --- include/ui/egl-helpers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ui/egl-helpers.h') diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index 4924fe560d..747233ce58 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -24,6 +24,10 @@ void egl_fb_setup_new_tex(egl_fb *fb, int width, int height); void egl_fb_blit(egl_fb *dst, egl_fb *src, bool flip); void egl_fb_read(void *dst, egl_fb *src); +void egl_texture_blit(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip); +void egl_texture_blend(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip, + int x, int y); + #ifdef CONFIG_OPENGL_DMABUF extern int qemu_egl_rn_fd; -- cgit v1.2.3