19 GLuint
getProgram(
const std::string& shaderClassName);
21 GLuint
loadShader(
const std::string& shaderClassName, GLenum shaderType);
26 void attachShader(
const GLuint programID,
const GLuint shaderID);
29 void addToCache(
const GLuint programID,
const std::string &shaderProgramName);
36 void compileShader(GLuint shaderID,
const std::string &shaderCode);
static ShaderLoader & Instance()
get instance
Definition: ShaderLoader.cpp:13
GLuint createProgram()
Definition: ShaderLoader.cpp:73
void checkShader(GLuint shaderID, GLint result)
Definition: ShaderLoader.cpp:138
void linkProgram(const GLuint programID)
Definition: ShaderLoader.cpp:83
GLuint loadVertexAndFragmentShader(const std::string &shaderClassName)
Definition: ShaderLoader.cpp:107
std::map< std::string, GLuint > m_ShaderProgramMap
Definition: ShaderLoader.hpp:39
void deleteShader(const GLuint shaderID)
Definition: ShaderLoader.cpp:68
void attachShader(const GLuint programID, const GLuint shaderID)
Definition: ShaderLoader.cpp:78
void checkProgram(const GLuint programID)
Definition: ShaderLoader.cpp:89
void compileShader(GLuint shaderID, const std::string &shaderCode)
Definition: ShaderLoader.cpp:131
std::string readInShaderCode(const std::string &pathToShaderFile)
Definition: ShaderLoader.cpp:153
Definition: ShaderLoader.hpp:12
void addToCache(const GLuint programID, const std::string &shaderProgramName)
Definition: ShaderLoader.cpp:38
ShaderLoader()
Definition: ShaderLoader.hpp:32
GLuint loadShader(const std::string &shaderClassName, GLenum shaderType)
Definition: ShaderLoader.cpp:47
GLuint getProgram(const std::string &shaderClassName)
get shader program
Definition: ShaderLoader.cpp:20