|
| Type | Type [get] |
| | Specifies the C# equivalent of the GLSL data type. More...
|
| |
| int | Location [get] |
| | Specifies the location of the parameter in the OpenGL program. More...
|
| |
| uint | Program [get] |
| | Specifies the OpenGL program ID. More...
|
| |
| ParamType | ParamType [get] |
| | Specifies the parameter type (either attribute or uniform). More...
|
| |
| string | Name [get] |
| | Specifies the case-sensitive name of the parameter. More...
|
| |
Definition at line 17 of file Shader.cs.
| Shift.Graphics.GL.ProgramParam.ProgramParam |
( |
Type |
Type, |
|
|
ParamType |
ParamType, |
|
|
string |
Name |
|
) |
| |
|
inline |
Creates a program parameter with a given type and name. The location must be found after the program is compiled by using the GetLocation(ShaderProgram Program) method.
- Parameters
-
| Type | Specifies the C# equivalent of the GLSL data type. |
| ParamType | Specifies the parameter type (either attribute or uniform). |
| Name | Specifies the case-sensitive name of the parameter. |
Definition at line 58 of file Shader.cs.
| Shift.Graphics.GL.ProgramParam.ProgramParam |
( |
Type |
Type, |
|
|
ParamType |
ParamType, |
|
|
string |
Name, |
|
|
uint |
Program, |
|
|
int |
Location |
|
) |
| |
|
inline |
Creates a program parameter with a type, name, program and location.
- Parameters
-
| Type | Specifies the C# equivalent of the GLSL data type. |
| ParamType | Specifies the parameter type (either attribute or uniform). |
| Name | Specifies the case-sensitive name of the parameter. |
| Program | Specifies the OpenGL program ID. |
| Location | Specifies the location of the parameter. |
Definition at line 73 of file Shader.cs.
| void Shift.Graphics.GL.ProgramParam.GetLocation |
( |
ShaderProgram |
Program | ) |
|
|
inline |
Gets the location of the parameter in a compiled OpenGL program.
- Parameters
-
| Program | Specifies the shader program that contains this parameter. |
Definition at line 84 of file Shader.cs.
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
bool |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
int |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
float |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
Vector2 |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
Vector3 |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
Vector4 |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
Matrix |
param | ) |
|
|
inline |
| void Shift.Graphics.GL.ProgramParam.SetValue |
( |
float[] |
param | ) |
|
|
inline |
| int Shift.Graphics.GL.ProgramParam.Location |
|
get |
Specifies the location of the parameter in the OpenGL program.
Definition at line 33 of file Shader.cs.
| string Shift.Graphics.GL.ProgramParam.Name |
|
get |
Specifies the case-sensitive name of the parameter.
Definition at line 48 of file Shader.cs.
| ParamType Shift.Graphics.GL.ProgramParam.ParamType |
|
get |
Specifies the parameter type (either attribute or uniform).
Definition at line 43 of file Shader.cs.
| uint Shift.Graphics.GL.ProgramParam.Program |
|
get |
Specifies the OpenGL program ID.
Definition at line 38 of file Shader.cs.
| Type Shift.Graphics.GL.ProgramParam.Type |
|
get |
Specifies the C# equivalent of the GLSL data type.
Definition at line 28 of file Shader.cs.
The documentation for this class was generated from the following file: