Ctor.
Namespace: HighGLAssembly: 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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If shaders is null |
| System..::..ArgumentException | If shaders does not contain at least one vertex shader and one fragment shader. |
| System..::..ArgumentException | If a uniform variable is defined more than once, and its type varies between shaders. |
| HighGL..::..GLException | |
| HighGL..::..GLErrorException |