C# Class Aiv.Fast2D.Shader

Inheritance: IDisposable
显示文件 Open project: aiv01/aiv-fast2d Class Usage Examples

Public Methods

Method Description
BindAttribLocation ( int attribId, string name ) : void
Dispose ( ) : void
GetAttribLocation ( string name ) : int
SetUniform ( string name, Matrix4 m ) : void
SetUniform ( string name, System.Vector4 value ) : void
SetUniform ( string name, float n ) : void
SetUniform ( string name, int n ) : void
Shader ( string vertexModern, string fragmentModern, string vertexObsolete = null, string fragmentObsolete = null, string attribs = null ) : OpenTK.Graphics.OpenGL
Use ( ) : void

Private Methods

Method Description
GetUniform ( string name ) : int

Method Details

BindAttribLocation() public method

public BindAttribLocation ( int attribId, string name ) : void
attribId int
name string
return void

Dispose() public method

public Dispose ( ) : void
return void

GetAttribLocation() public method

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

SetUniform() public method

public SetUniform ( string name, Matrix4 m ) : void
name string
m Matrix4
return void

SetUniform() public method

public SetUniform ( string name, System.Vector4 value ) : void
name string
value System.Vector4
return void

SetUniform() public method

public SetUniform ( string name, float n ) : void
name string
n float
return void

SetUniform() public method

public SetUniform ( string name, int n ) : void
name string
n int
return void

Shader() public method

public Shader ( string vertexModern, string fragmentModern, string vertexObsolete = null, string fragmentObsolete = null, string attribs = null ) : OpenTK.Graphics.OpenGL
vertexModern string
fragmentModern string
vertexObsolete string
fragmentObsolete string
attribs string
return OpenTK.Graphics.OpenGL

Use() public method

public Use ( ) : void
return void