aboutsummaryrefslogtreecommitdiff
path: root/src/shaderutils.h
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-08-06 11:57:49 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-08-06 11:57:49 +0000
commitacf1eb14767d5d7c5ffa3b2c9402ea459f4ffb42 (patch)
treeee0ed001cd9b9b81b2d883fdceb0094ace6442da /src/shaderutils.h
parent266a3f19778dcf92c5387341192c31979604f968 (diff)
Move shader utilities to a separate file
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@211 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/shaderutils.h')
-rw-r--r--src/shaderutils.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/shaderutils.h b/src/shaderutils.h
new file mode 100644
index 0000000..df8fb78
--- /dev/null
+++ b/src/shaderutils.h
@@ -0,0 +1,29 @@
+/*
+ * shaderuitils.h
+ *
+ * Shader utilities
+ *
+ * (c) 2008 Thomas White <taw27@cam.ac.uk>
+ *
+ * thrust3d - a silly game
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glew.h>
+
+#ifndef SHADERUTILS_H
+#define SHADERUTILS_H
+
+extern void shaderutils_setunf(GLuint program, const char *name, GLfloat val);
+extern void shaderutils_setun2f(GLuint program, const char *name, GLfloat val1, GLfloat val2);
+extern void shaderutils_setuni(GLuint program, const char *name, GLint val);
+extern GLuint shaderutils_load_shader(const char *filename, GLenum type);
+extern int shaderutils_link_program(GLuint program);
+extern int shaderutils_validate_program(GLuint program);
+
+#endif /* SHADERUTILS_H */
+