9 #ifndef GLSL_PROGRAM_HPP 10 #define GLSL_PROGRAM_HPP 21 GLuint program_id_ = 0;
22 GLuint vertex_shader_id_ = 0;
23 GLuint fragment_shader_id_ = 0;
24 int attribute_index_ = 0;
27 void compileShader(
const GLuint& shader,
const std::string& file_path);
30 GlslProgram() =
default;
31 GlslProgram(
const GlslProgram&) =
delete;
32 GlslProgram(GlslProgram&&) =
delete;
35 GlslProgram& operator=(
const GlslProgram&) =
delete;
36 GlslProgram& operator=(GlslProgram&&) =
delete;
39 void compileShaders(
const std::string& vertex_shader_path,
40 const std::string& fragment_shader_path);
42 void addAttribute(
const std::string& attribute_name);
43 GLint getUniformLocation(
const std::string& uniform_name);
Definition: camera2d.hpp:17