mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 14:00:44 +00:00
2e1d70b9e0
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
14 lines
287 B
C
14 lines
287 B
C
#ifndef QEMU_SHADER_H
|
|
#define QEMU_SHADER_H
|
|
|
|
#include <epoxy/gl.h>
|
|
|
|
typedef struct QemuGLShader QemuGLShader;
|
|
|
|
void qemu_gl_run_texture_blit(QemuGLShader *gls, bool flip);
|
|
|
|
QemuGLShader *qemu_gl_init_shader(void);
|
|
void qemu_gl_fini_shader(QemuGLShader *gls);
|
|
|
|
#endif /* QEMU_SHADER_H */
|