diff options
author | Andy <drumsetmonkey@gmail.com> | 2016-12-23 08:42:15 -0500 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2016-12-23 08:42:15 -0500 |
commit | d7d1b397197893f0ce49b28f762711b7a9ef1087 (patch) | |
tree | 6a14f9daf59cb1640f09e7f82c6325d93d0a62dc /include/shader_utils.hpp | |
parent | 691411cdb214178f2d10ab589943993039fe080e (diff) | |
parent | 6dd6d03bb1af3c1c482a67355446998eccc3288c (diff) |
Sprites are good. Merged.
Diffstat (limited to 'include/shader_utils.hpp')
-rw-r--r-- | include/shader_utils.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/shader_utils.hpp b/include/shader_utils.hpp index 243b3d4..06ac318 100644 --- a/include/shader_utils.hpp +++ b/include/shader_utils.hpp @@ -1,8 +1,11 @@ /** + * @file shader_utils.hpp + * @brief Utilities to use to handle GLSL shaders. * 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 @@ -11,12 +14,12 @@ #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(); +char* file_read(const char* filename); +void print_log(GLuint object); +GLuint create_shader(const char* filename, GLenum type); +GLuint create_program(const char* vertexfile, const char *fragmentfile); +GLint get_attrib(GLuint program, const char *name); +GLint get_uniform(GLuint program, const char *name); +void print_opengl_info(); #endif |