C# Class Aiv.Fast2D.Shader

Inheritance: IDisposable
Afficher le fichier Open project: aiv01/aiv-fast2d Class Usage Examples

Méthodes publiques

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

Méthode Description
GetUniform ( string name ) : int

Method Details

BindAttribLocation() public méthode

public BindAttribLocation ( int attribId, string name ) : void
attribId int
name string
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAttribLocation() public méthode

public GetAttribLocation ( string name ) : int
name string
Résultat int

SetUniform() public méthode

public SetUniform ( string name, Matrix4 m ) : void
name string
m Matrix4
Résultat void

SetUniform() public méthode

public SetUniform ( string name, System.Vector4 value ) : void
name string
value System.Vector4
Résultat void

SetUniform() public méthode

public SetUniform ( string name, float n ) : void
name string
n float
Résultat void

SetUniform() public méthode

public SetUniform ( string name, int n ) : void
name string
n int
Résultat void

Shader() public méthode

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
Résultat OpenTK.Graphics.OpenGL

Use() public méthode

public Use ( ) : void
Résultat void