 | UniformSetValue Method (Int32, Int32, Int32, Int32) |
Sets the individual elements of a uniform containing four integer values.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void SetValue(
int value0,
int value1,
int value2,
int value3
)
Public Sub SetValue (
value0 As Integer,
value1 As Integer,
value2 As Integer,
value3 As Integer
)
public:
void SetValue(
int value0,
int value1,
int value2,
int value3
)
member SetValue :
value0 : int *
value1 : int *
value2 : int *
value3 : int -> unit
Parameters
- value0
- Type: SystemInt32
The first element to set - value1
- Type: SystemInt32
The second element to set - value2
- Type: SystemInt32
The third element to set - value3
- Type: SystemInt32
The fourth element to set
ExceptionsException | 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.
OpenGL API: glUniform4
See Also