I've been following the LearnOpenGL tutorials and I've come across a piece of code I don't understand.
glUniform1i(glGetUniformLocation(ShaderID, "textureVar"), 0);
In the above code ShaderID is a GLuint which references a shader.
textureVar is a sampler2D in the shader.
I don't understand the last parameter in that line of code. Does the 0 represent GL_TEXTURE0 or what exactly does the last parameter mean?