C# 클래스 Sharpex2D.Rendering.OpenGL.Shaders.ShaderProgram

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Bind() 공개 메소드

Binds the shader program.
public Bind ( ) : void
리턴 void

Delete() 공개 메소드

Deletes the shader program.
public Delete ( ) : void
리턴 void

GetAttribLocation() 공개 메소드

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

Link() 공개 메소드

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.
리턴 void

SetUniform() 공개 메소드

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

SetUniformMatrix() 공개 메소드

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

ShaderProgram() 공개 메소드

Initializes a new ShaderProgram class.
public ShaderProgram ( ) : System
리턴 System

Unbind() 공개 메소드

Unbinds the shader program.
public Unbind ( ) : void
리턴 void