C# Class Sharpex2D.Rendering.OpenGL.Shaders.ShaderProgram

ファイルを表示 Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Bind ( ) : void

Binds the shader program.

Delete ( ) : void

Deletes the shader program.

GetAttribLocation ( string name ) : uint

Gets the attribute location.

Link ( VertexShader vShader, FragmentShader fShader ) : void

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.

Method Details

Bind() public method

Binds the shader program.
public Bind ( ) : void
return void

Delete() public method

Deletes the shader program.
public Delete ( ) : void
return void

GetAttribLocation() public method

Gets the attribute location.
public GetAttribLocation ( string name ) : uint
name string The Name.
return uint

Link() public method

Links a vertex shader and a fragment shader to this program.
public Link ( VertexShader vShader, FragmentShader fShader ) : void
vShader VertexShader The VertexShader.
fShader FragmentShader The FragmentShader.
return void

SetUniform() public method

Sets an uniform.
public SetUniform ( string name ) : void
name string The Name.
return void

SetUniformMatrix() public method

Sets an Uniform matrix.
public SetUniformMatrix ( string name, float data ) : void
name string The Name.
data float The Data.
return void

ShaderProgram() public method

Initializes a new ShaderProgram class.
public ShaderProgram ( ) : System
return System

Unbind() public method

Unbinds the shader program.
public Unbind ( ) : void
return void