11 Shader(
const std::vector<std::pair<GLenum, std::string> >& shaderPaths);
17 static void loadTextFile(
const std::string& filename, std::vector<char>& data);
24 static GLuint
compileShader(
const std::vector<char>& shaderSrc, GLenum shaderType);
GLuint programHandle() const
Definition: shader.hpp:15
~Shader()
Definition: shader.cpp:68
static GLuint compileShader(const std::vector< char > &shaderSrc, GLenum shaderType)
Definition: shader.cpp:73
Helper class to manage one Shader object file in RAII style.
Definition: shader.cpp:8
Shader(const std::vector< std::pair< GLenum, std::string > > &shaderPaths)
Definition: shader.cpp:25
Encapsulates a shader program.
Definition: shader.hpp:9
static void loadTextFile(const std::string &filename, std::vector< char > &data)
Definition: shader.cpp:106
GLuint program_handle
Definition: shader.hpp:20
void use() const
Definition: shader.hpp:14