aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-10-10 15:54:50 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-10-17 10:25:42 +0200
commit2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c (patch)
tree98f4a8f35a8a696ddcae2a20ea87db4425c8d396 /include/ui
parent46e19e149f3b129a22c440caba853188df67deab (diff)
downloadqemu-2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c.zip
qemu-2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c.tar.gz
qemu-2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c.tar.bz2
opengl: add flipping vertex shader
Add vertex shader which flips the texture upside down while blitting it. Add argument to qemu_gl_run_texture_blit() to enable flipping. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20171010135453.6704-4-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/shader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ui/shader.h b/include/ui/shader.h
index 369e498..4c5acb2 100644
--- a/include/ui/shader.h
+++ b/include/ui/shader.h
@@ -5,7 +5,7 @@
typedef struct QemuGLShader QemuGLShader;
-void qemu_gl_run_texture_blit(QemuGLShader *gls);
+void qemu_gl_run_texture_blit(QemuGLShader *gls, bool flip);
QemuGLShader *qemu_gl_init_shader(void);
void qemu_gl_fini_shader(QemuGLShader *gls);