SetInt
This function sets an integer uniform.
Syntax
- bool SetInt(string name, number i)
- bool SetInt(string name, number i, number 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.