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