1 #ifndef BLANK_GRAPHICS_PROGRAM_HPP_
2 #define BLANK_GRAPHICS_PROGRAM_HPP_
19 Program(const Program &) = delete;
20 Program &operator =(const Program &) = delete;
22 const Shader &LoadShader(GLenum type, const GLchar *src);
23 void Attach(Shader &) noexcept;
25 bool Linked() const noexcept;
26 void Log(std::ostream &) const;
28 GLint AttributeLocation(const GLchar *name) const noexcept;
29 GLint UniformLocation(const GLchar *name) const noexcept;
31 void Use() const noexcept { glUseProgram(handle); }
35 std::list<Shader> shaders;