C# Class OOGL.Shaders.ShaderProgram

Inheritance: IDisposable
Datei anzeigen Open project: tpb3d/TPB3D Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FindAttribIndex ( string name ) : int
SetFloat ( string name, float value ) : void
SetMatrix3 ( string name, float values ) : void
SetMatrix4 ( string name, float values ) : void
SetSamplerUniform ( string name, int sampler ) : void
SetSamplerUniform ( string name, uint sampler ) : void
SetVector3 ( string name, Vector3 value ) : void
ShaderProgram ( string vertexShaderFile, string fragmentShaderFile ) : System
Use ( ) : void
UseDefault ( ) : void

Private Methods

Method Description
FindUniformLocation ( string name ) : int
SetMatrix ( string name, Matrix4 value ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FindAttribIndex() public method

public FindAttribIndex ( string name ) : int
name string
return int

SetFloat() public method

public SetFloat ( string name, float value ) : void
name string
value float
return void

SetMatrix3() public method

public SetMatrix3 ( string name, float values ) : void
name string
values float
return void

SetMatrix4() public method

public SetMatrix4 ( string name, float values ) : void
name string
values float
return void

SetSamplerUniform() public method

public SetSamplerUniform ( string name, int sampler ) : void
name string
sampler int
return void

SetSamplerUniform() public method

public SetSamplerUniform ( string name, uint sampler ) : void
name string
sampler uint
return void

SetVector3() public method

public SetVector3 ( string name, Vector3 value ) : void
name string
value Vector3
return void

ShaderProgram() public method

public ShaderProgram ( string vertexShaderFile, string fragmentShaderFile ) : System
vertexShaderFile string
fragmentShaderFile string
return System

Use() public method

public Use ( ) : void
return void

UseDefault() public static method

public static UseDefault ( ) : void
return void