 | UniformGetValue Method (Single) |
Return the value of a uniform variable.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void GetValue(
out float value
)
Public Sub GetValue (
<OutAttribute> ByRef value As Single
)
public:
void GetValue(
[OutAttribute] float% value
)
member GetValue :
value : float32 byref -> unit
Parameters
- value
- Type: SystemSingle
is set to the returned value.
ExceptionsException | Condition |
---|
GLException | InvalidOperation if the program is not successfully linked. |
Remarks
The type of the uniform variable determines the type of value that is 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