 | UniformGetValue Method (Single, Single, Single) |
Return the value of a uniform variable of type Vector3.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void GetValue(
out float value0,
out float value1,
out float value2
)
Public Sub GetValue (
<OutAttribute> ByRef value0 As Single,
<OutAttribute> ByRef value1 As Single,
<OutAttribute> ByRef value2 As Single
)
public:
void GetValue(
[OutAttribute] float% value0,
[OutAttribute] float% value1,
[OutAttribute] float% value2
)
member GetValue :
value0 : float32 byref *
value1 : float32 byref *
value2 : float32 byref -> unit
Parameters
- value0
- Type: SystemSingle
is set to first element (X). - value1
- Type: SystemSingle
is set to second element (Y). - value2
- Type: SystemSingle
is set to third element (Z).
ExceptionsException | Condition |
---|
GLException | InvalidOperation if the program is not successfully linked. |
Remarks
The type of the uniform variable determines the type of values that are returned.
It is the responsibility of the caller to make sure that the type of the parameters matches the type of the uniform variable in the shader.
The uniform variable values can only be queried after a link if the link was successful.
OpenGL API: glGetUniform
See Also