Shift
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Shift.Graphics.GL.ProgramParam Class Reference

Public Member Functions

 ProgramParam (Type Type, ParamType ParamType, string Name)
 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. More...
 
 ProgramParam (Type Type, ParamType ParamType, string Name, uint Program, int Location)
 Creates a program parameter with a type, name, program and location. More...
 
void GetLocation (ShaderProgram Program)
 Gets the location of the parameter in a compiled OpenGL program. More...
 
void SetValue (bool param)
 
void SetValue (int param)
 
void SetValue (float param)
 
void SetValue (Vector2 param)
 
void SetValue (Vector3 param)
 
void SetValue (Vector4 param)
 
void SetValue (Matrix param)
 
void SetValue (float[] param)
 

Properties

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...
 

Detailed Description

Definition at line 17 of file Shader.cs.

Constructor & Destructor Documentation

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
TypeSpecifies the C# equivalent of the GLSL data type.
ParamTypeSpecifies the parameter type (either attribute or uniform).
NameSpecifies 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
TypeSpecifies the C# equivalent of the GLSL data type.
ParamTypeSpecifies the parameter type (either attribute or uniform).
NameSpecifies the case-sensitive name of the parameter.
ProgramSpecifies the OpenGL program ID.
LocationSpecifies the location of the parameter.

Definition at line 73 of file Shader.cs.

Member Function Documentation

void Shift.Graphics.GL.ProgramParam.GetLocation ( ShaderProgram  Program)
inline

Gets the location of the parameter in a compiled OpenGL program.

Parameters
ProgramSpecifies the shader program that contains this parameter.

Definition at line 84 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( bool  param)
inline

Definition at line 94 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( int  param)
inline

Definition at line 100 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( float  param)
inline

Definition at line 106 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( Vector2  param)
inline

Definition at line 112 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( Vector3  param)
inline

Definition at line 118 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( Vector4  param)
inline

Definition at line 124 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( Matrix  param)
inline

Definition at line 130 of file Shader.cs.

void Shift.Graphics.GL.ProgramParam.SetValue ( float[]  param)
inline

Definition at line 136 of file Shader.cs.

Property Documentation

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: