aboutsummaryrefslogtreecommitdiffstats
path: root/include/glsl_program.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/glsl_program.hpp')
-rw-r--r--include/glsl_program.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/glsl_program.hpp b/include/glsl_program.hpp
index dd31b34..98a47e3 100644
--- a/include/glsl_program.hpp
+++ b/include/glsl_program.hpp
@@ -10,6 +10,7 @@ private:
GLuint program_id_ = 0;
GLuint vertex_shader_id_ = 0;
GLuint fragment_shader_id_ = 0;
+ int attribute_index_ = 0;
void compileShader(const GLuint &shader, const std::string &file_path);
public:
@@ -18,6 +19,10 @@ public:
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();
};