diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-06 08:04:37 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-06 08:04:37 -0400 |
commit | bc92962aff14805d5920f5a82628648d1c1fe4fd (patch) | |
tree | 6575a93032745a6493eef677c35996ed1119f6bb /include/shader_utils.hpp | |
parent | aaf7a6bd286b0d200356ef54148791e2e91ff253 (diff) |
Shadaersrsersdfsdf
Diffstat (limited to 'include/shader_utils.hpp')
-rw-r--r-- | include/shader_utils.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/shader_utils.hpp b/include/shader_utils.hpp new file mode 100644 index 0000000..243b3d4 --- /dev/null +++ b/include/shader_utils.hpp @@ -0,0 +1,22 @@ +/** + * From the OpenGL Programming wikibook: http://en.wikibooks.org/wiki/OpenGL_Programming + * This file is in the public domain. + * Contributors: Sylvain Beucler, Guus Sliepen + */ +#ifndef _CREATE_SHADER_H +#define _CREATE_SHADER_H + +#define GLEW_STATIC +#include <GL/glew.h> + +#include <SDL2/SDL.h> + +extern char* file_read(const char* filename); +extern void print_log(GLuint object); +extern GLuint create_shader(const char* filename, GLenum type); +extern GLuint create_program(const char* vertexfile, const char *fragmentfile); +extern GLint get_attrib(GLuint program, const char *name); +extern GLint get_uniform(GLuint program, const char *name); +extern void print_opengl_info(); + +#endif |