Ctor.

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

Syntax

C#
public ShaderProgram(
	Shader[] shaders
)
Visual Basic
Public Sub New ( _
	shaders As Shader() _
)
Visual C++
public:
ShaderProgram(
	array<Shader^>^ shaders
)

Parameters

shaders
Type: array<HighGL..::..Shader>[]()[][]
The shaders that are part of this program. The shaders are disposed automatically with the program.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionIf shaders is null
System..::..ArgumentExceptionIf shaders does not contain at least one vertex shader and one fragment shader.
System..::..ArgumentExceptionIf a uniform variable is defined more than once, and its type varies between shaders.
HighGL..::..GLException
HighGL..::..GLErrorException

See Also