SetVec4
This function sets a Vec4 uniform.
Syntax
- bool SetVec4(const std::string& name, const Vec4& v)
- bool SetVec4(const std::string& name, const float* v, int count)
Parameters
- name: the name of the shader uniform.
- v: a Vec4 value or pointer to an array of floats.
- count: the number of floats in the array, divided by four.
Returns
Returns true if the uniform exists and is of the correct type and size, otherwise false is returned.