Creates a new Shader
object with the specified vertex and fragment shader file paths.
Parameters:
vertexPath
: The file path of the vertex shader.fragmentPath
: The file path of the fragment shader.
Sets the current shader as the active shader.
Sets an integer uniform value in the shader.
Parameters:
name
: The name of the uniform variable.value
: The integer value to set.
Sets a float uniform value in the shader.
Parameters:
name
: The name of the uniform variable.value
: The float value to set.
Sets a 4x4 matrix uniform value in the shader.
Parameters:
name
: The name of the uniform variable.value
: A pointer to the array representing the matrix value.
Sets a 2D vector uniform value in the shader.
Parameters:
name
: The name of the uniform variable.x
: The x component of the vector.y
: The y component of the vector.
Sets a 3D vector uniform value in the shader.
Parameters:
name
: The name of the uniform variable.x
: The x component of the vector.y
: The y component of the vector.z
: The z component of the vector.
Alias for setInt(const std::string& name, int value) const
.
Alias for setFloat(const std::string& name, float value) const
.
Alias for setMat4(const std::string& name, const float* value) const
.
Alias for setVec2(const std::string& name, float x, float y) const
.
Alias for setVec3(const std::string& name, float x, float y, float z) const
.