From 985e1c9b008e5e8b6eac41546266d3abcfa6282a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 24 Apr 2015 07:48:45 +0200 Subject: opengl: add shader helper functions. Helper functions to compile, link and run opengl shader programs. Signed-off-by: Gerd Hoffmann --- include/ui/shader.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/ui/shader.h (limited to 'include/ui') diff --git a/include/ui/shader.h b/include/ui/shader.h new file mode 100644 index 0000000..e1b0caf --- /dev/null +++ b/include/ui/shader.h @@ -0,0 +1,9 @@ +#ifdef CONFIG_OPENGL +# include +# include +#endif + +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); -- cgit v1.1