mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
opengl: move shader init from console-gl.c to shader.c
With the upcoming dmabuf support in qemu there will be more users of the shaders than just console-gl.c. So rename ConsoleGLState to QemuGLShader, rename some functions too, move code from console-gl.c to shaders.c. No functional change. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20171010135453.6704-3-kraxel@redhat.com
This commit is contained in:
@@ -3,13 +3,11 @@
|
||||
|
||||
#include <epoxy/gl.h>
|
||||
|
||||
GLuint qemu_gl_init_texture_blit(GLint texture_blit_prog);
|
||||
void qemu_gl_run_texture_blit(GLint texture_blit_prog,
|
||||
GLint texture_blit_vao);
|
||||
typedef struct QemuGLShader QemuGLShader;
|
||||
|
||||
GLuint qemu_gl_create_compile_shader(GLenum type, const GLchar *src);
|
||||
GLuint qemu_gl_create_link_program(GLuint vert, GLuint frag);
|
||||
GLuint qemu_gl_create_compile_link_program(const GLchar *vert_src,
|
||||
const GLchar *frag_src);
|
||||
void qemu_gl_run_texture_blit(QemuGLShader *gls);
|
||||
|
||||
QemuGLShader *qemu_gl_init_shader(void);
|
||||
void qemu_gl_fini_shader(QemuGLShader *gls);
|
||||
|
||||
#endif /* QEMU_SHADER_H */
|
||||
|
||||
Reference in New Issue
Block a user