17 Shader(
const std::string &path);
24 GLint getAttribLocation(
const std::string &name)
const;
26 GLint getUniformLocation(
const std::string &name)
const;
28 bool isCreatedSuccessfully()
const;
31 std::string m_shaderName;
32 bool createdSucessfully;
34 GLuint m_vertexShader;
35 GLuint m_fragmentShader;
36 GLuint m_geometryShader;
40 GLuint compile(GLenum type,
const string &source,
const string &path);
43 void outputShaderLog(GLuint shader);
44 void outputProgramLog(GLuint program);