Method | Description | |
---|---|---|
Bind ( ) : void |
Binds the shader program.
|
|
Delete ( ) : void |
Deletes the shader program.
|
|
GetAttribLocation ( string name ) : uint |
Gets the attribute location.
|
|
Link ( |
Links a vertex shader and a fragment shader to this program.
|
|
SetUniform ( string name ) : void |
Sets an uniform.
|
|
SetUniformMatrix ( string name, float data ) : void |
Sets an Uniform matrix.
|
|
ShaderProgram ( ) : System |
Initializes a new ShaderProgram class.
|
|
Unbind ( ) : void |
Unbinds the shader program.
|
public GetAttribLocation ( string name ) : uint | ||
name | string | The Name. |
return | uint |
public Link ( |
||
vShader | The VertexShader. | |
fShader | The FragmentShader. | |
return | void |
public SetUniform ( string name ) : void | ||
name | string | The Name. |
return | void |
public SetUniformMatrix ( string name, float data ) : void | ||
name | string | The Name. |
data | float | The Data. |
return | void |