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

Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Binds the shader program.
public Bind ( ) : void
Résultat void

Delete() public méthode

Deletes the shader program.
public Delete ( ) : void
Résultat void

GetAttribLocation() public méthode

Gets the attribute location.
public GetAttribLocation ( string name ) : uint
name string The Name.
Résultat uint

Link() public méthode

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.
Résultat void

SetUniform() public méthode

Sets an uniform.
public SetUniform ( string name ) : void
name string The Name.
Résultat void

SetUniformMatrix() public méthode

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

ShaderProgram() public méthode

Initializes a new ShaderProgram class.
public ShaderProgram ( ) : System
Résultat System

Unbind() public méthode

Unbinds the shader program.
public Unbind ( ) : void
Résultat void