summaryrefslogtreecommitdiff
path: root/include/ui/shader.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-04-24 07:48:45 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-05-05 10:43:03 +0200
commit985e1c9b008e5e8b6eac41546266d3abcfa6282a (patch)
tree5130bd7fcc53da40dc299ffb6899655fc6bdc313 /include/ui/shader.h
parentd98bc0b654b97d130338e76e0928296f84e6d6fd (diff)
downloadqemu-985e1c9b008e5e8b6eac41546266d3abcfa6282a.zip
opengl: add shader helper functions.
Helper functions to compile, link and run opengl shader programs. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/shader.h')
-rw-r--r--include/ui/shader.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ui/shader.h b/include/ui/shader.h
new file mode 100644
index 0000000000..e1b0caf796
--- /dev/null
+++ b/include/ui/shader.h
@@ -0,0 +1,9 @@
+#ifdef CONFIG_OPENGL
+# include <GLES2/gl2.h>
+# include <GLES2/gl2ext.h>
+#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);