![]() | UniformSetValue Method (Vector4) |
Namespace: Ooogles
Exception | Condition |
---|---|
GLException | InvalidOperation if there is no current program in use. |
GLException | InvalidOperation if type of the parameter does not match the declaration in the shader. |
All active uniform variables defined in a program object are initialized to 0 when the program object is linked successfully. They retain the values assigned to them by a call to SetValue until the next successful link operation occurs on the program object, when they are once again initialized to 0.
OpenGL API: glUniform4