Sets the value of a shader variable. Enables this program as a side effect.

Namespace: HighGL
Assembly: HighGL (in HighGL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void SetUniform(
	string name,
	bool value
)
Visual Basic
Public Sub SetUniform ( _
	name As String, _
	value As Boolean _
)
Visual C++
public:
void SetUniform(
	String^ name, 
	bool value
)

Parameters

name
Type: System..::..String
The variable to modify.
value
Type: System..::..Boolean
The new value.

Exceptions

ExceptionCondition
System..::..ObjectDisposedExceptionIf this object was disposed.
System..::..ArgumentExceptionIf the variable does not support the type.
System..::..InvalidOperationExceptionIf the location of the shader variable could not be obtained.

See Also