Ctor.

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

Syntax

C#
public Shader(
	ShaderType type,
	string source,
	ShaderVariable[] uniforms = null
)
Visual Basic
Public Sub New ( _
	type As ShaderType, _
	source As String, _
	Optional uniforms As ShaderVariable() = Nothing _
)
Visual C++
public:
Shader(
	ShaderType type, 
	String^ source, 
	array<ShaderVariable^>^ uniforms = nullptr
)

Parameters

type
Type: ShaderType
The type of the shader.
source
Type: System..::..String
The source code of the shader.
uniforms (Optional)
Type: array<HighGL..::..ShaderVariable>[]()[][]
List of uniform variables supported by this shader.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionIf source contains no source code.
HighGL..::..GLExceptionIf shader creation or compilation fails.
HighGL..::..GLErrorExceptionIf a GL error occurs on initialization.

See Also