end of file

This commit is contained in:
Jonas Sorgenfrei
2022-04-04 01:48:17 +02:00
parent c6385183b3
commit 801be81baa
10 changed files with 455 additions and 6 deletions

View File

@@ -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)