diff options
Diffstat (limited to 'include/yage/glsl_program.hpp')
-rw-r--r-- | include/yage/glsl_program.hpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/yage/glsl_program.hpp b/include/yage/glsl_program.hpp deleted file mode 100644 index cef38a8e..00000000 --- a/include/yage/glsl_program.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef GLSL_PROGRAM_HPP -#define GLSL_PROGRAM_HPP - -#include <GL/glew.h> - -#include <string> - -class GlslProgram -{ -private: - // compiled shader program id - GLuint program_id_ = 0; - GLuint vertex_shader_id_ = 0; - GLuint fragment_shader_id_ = 0; - int attribute_index_ = 0; - - // compiles one shader - void compileShader(const GLuint &shader, const std::string &file_path); -public: - GlslProgram(); - ~GlslProgram(); - - // compiles vertex and fragment shader - void compileShaders(const std::string &vertex_shader_path, const std::string &fragment_shader_path); - void linkShaders(); - void addAttribute(const std::string &attribute_name); - GLint getUniformLocation(const std::string &uniform_name); - void use(); - void unuse(); -}; - - -#endif |