mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
end of file
This commit is contained in:
@@ -13,6 +13,10 @@ class Shader
|
||||
{
|
||||
public:
|
||||
unsigned int ID;
|
||||
Shader() {
|
||||
ID = -1;
|
||||
}
|
||||
|
||||
// constructor generates the shader on the fly
|
||||
// ------------------------------------------------------------------------
|
||||
Shader(const char* vertexPath, const char* fragmentPath)
|
||||
@@ -135,7 +139,7 @@ public:
|
||||
glUniformMatrix4fv(glGetUniformLocation(ID, name.c_str()), 1, GL_FALSE, &mat[0][0]);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
// utility function for checking shader compilation/linking errors.
|
||||
// ------------------------------------------------------------------------
|
||||
void checkCompileErrors(GLuint shader, std::string type)
|
||||
|
||||
Reference in New Issue
Block a user