20#ifndef YOURGAME_GLSHADER_H
21#define YOURGAME_GLSHADER_H
37 static Shader *
make(
const std::vector<std::pair<GLenum, std::string>> &shaderCodes,
38 const std::vector<std::pair<GLuint, std::string>> &attrLocs,
39 const std::vector<std::pair<GLuint, std::string>> &fragDataLocs,
40 std::string &errorLog);
52 GLuint m_programHandle;
53 std::map<std::string, GLint> m_uniformLocations;
Definition lightsource.h:30
GLint getUniformLocation(const GLchar *name)
Definition shader.cpp:216
Shader(Shader const &)=delete
Shader & operator=(Shader const &)=delete
void useProgram(Lightsource *lightsource=nullptr, yourgame::math::Camera *camera=nullptr)
Definition shader.cpp:168
static Shader * make(const std::vector< std::pair< GLenum, std::string > > &shaderCodes, const std::vector< std::pair< GLuint, std::string > > &attrLocs, const std::vector< std::pair< GLuint, std::string > > &fragDataLocs, std::string &errorLog)
Definition shader.cpp:52
~Shader()
Definition shader.cpp:163