Definition at line 272 of file Shader.cs.
| Shift.Graphics.GL.ShaderProgram.ShaderProgram |
( |
Shader |
vertexShader, |
|
|
Shader |
fragmentShader |
|
) |
| |
|
inline |
Links a vertex and fragment shader together to create a shader program.
- Parameters
-
| vertexShader | Specifies the vertex shader. |
| fragmentShader | Specifies the fragment shader. |
Definition at line 320 of file Shader.cs.
| Shift.Graphics.GL.ShaderProgram.ShaderProgram |
( |
string |
vertexShaderSource, |
|
|
string |
fragmentShaderSource |
|
) |
| |
|
inline |
Creates two shaders and then links them together to create a shader program.
- Parameters
-
| vertexShaderSource | Specifies the source code of the vertex shader. |
| fragmentShaderSource | Specifies the source code of the fragment shader. |
Definition at line 339 of file Shader.cs.
| void Shift.Graphics.GL.ShaderProgram.Dispose |
( |
| ) |
|
|
inline |
| int Shift.Graphics.GL.ShaderProgram.GetAttributeLocation |
( |
string |
Name | ) |
|
|
inline |
| int Shift.Graphics.GL.ShaderProgram.GetUniformLocation |
( |
string |
Name | ) |
|
|
inline |
| void Shift.Graphics.GL.ShaderProgram.Use |
( |
| ) |
|
|
inline |
| bool Shift.Graphics.GL.ShaderProgram.DisposeChildren |
|
getset |
Specifies whether this program will dispose of the child vertex/fragment programs when the IDisposable method is called.
Definition at line 293 of file Shader.cs.
| Shader Shift.Graphics.GL.ShaderProgram.FragmentShader |
|
getset |
Specifies the fragment shader used in this program.
Definition at line 287 of file Shader.cs.
| uint Shift.Graphics.GL.ShaderProgram.ProgramID |
|
getset |
Specifies the OpenGL shader program ID.
Definition at line 277 of file Shader.cs.
| string Shift.Graphics.GL.ShaderProgram.ProgramLog |
|
get |
Returns Gl.GetProgramInfoLog(ShaderID), which contains any linking errors.
Definition at line 311 of file Shader.cs.
| ProgramParam Shift.Graphics.GL.ShaderProgram.this[string name] |
|
get |
Queries the shader parameter hashtable to find a matching attribute/uniform.
- Parameters
-
| name | Specifies the case-sensitive name of the shader attribute/uniform. |
- Returns
- The requested attribute/uniform, or null on a failure.
Definition at line 303 of file Shader.cs.
| Shader Shift.Graphics.GL.ShaderProgram.VertexShader |
|
getset |
Specifies the vertex shader used in this program.
Definition at line 282 of file Shader.cs.
The documentation for this class was generated from the following file: