SetInt
This function sets an integer uniform.
Syntax
- bool SetInt(const std::string& name, int i)
- bool SetInt(const std::string& name, const int* i, int count))
Parameters
- name: the name of the shader uniform.
- f: an integer value or pointer to an array of integers.
- count: the number of integers in the array.
Returns
Returns true if the uniform exists and is of the correct type, otherwise false is returned.