  | UniformSetValue Method (Single, Single, Single, Single) | 
 
             Sets the individual elements of a uniform or type Vector4.
             
 
    Namespace: 
   Ooogles
    Assembly:
   Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void SetValue(
	float value0,
	float value1,
	float value2,
	float value3
)
Public Sub SetValue ( 
	value0 As Single,
	value1 As Single,
	value2 As Single,
	value3 As Single
)
public:
void SetValue(
	float value0, 
	float value1, 
	float value2, 
	float value3
)
member SetValue : 
        value0 : float32 * 
        value1 : float32 * 
        value2 : float32 * 
        value3 : float32 -> unit 
Parameters
- value0
 - Type: SystemSingle
The first element (X) to set - value1
 - Type: SystemSingle
The second element (Y) to set - value2
 - Type: SystemSingle
The third element (Z) to set - value3
 - Type: SystemSingle
The fourth element (W) to set 
Exceptions| Exception | Condition | 
|---|
| GLException | InvalidOperation if there is no current program in use. | 
| GLException | InvalidOperation if the number and types of the parameters does not match the declaration in the shader. | 
Remarks
             This method modifies the value of a uniform variable.
             It operates on the program object that was made part of current state by calling 
Use.
            
             
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.
This overload works identical to SetValue(Vector4).
OpenGL API: glUniform4
See Also