C# Class Vector.Gpu.Shader

Shader

GLSL Effect wrapper Object.

Exibir arquivo Open project: sinclairzx81/vector-cs Class Usage Examples

Public Methods

Method Description
AppendFragmentSource ( ) : void

Appends the Fragment Shader Source

AppendGeometrySource ( ) : void

Appends the Fragment Shader Source

AppendVertexSource ( ) : void

Appends the Vertex Shader Source

Begin ( ) : void

Starts this Program

ClearFragmentSource ( ) : void

Clears the Fragment Shader Source

ClearGeometrySource ( ) : void

Clears the Geometry Shader Source

ClearVertexSource ( ) : void

Clears the Vertex Shader Source.

Compile ( ) : ShaderCompileResult

Compiles all Shader Source code into a workable program. Will only compile a Shader Type, Vertex, Fragment or Geometry if the Source for each program is greater than 0 in length.

Dispose ( ) : void
End ( ) : void

Ends this Program

Flush ( ) : void

Flushes out all previously bound data while leaving the Shader still bound.

Parameter ( string name, System.Matrix matrix ) : void
Parameter ( string name, Plane plane ) : void
Parameter ( string name, TextureBase texture ) : void
Parameter ( string name, System.Vector2 v ) : void
Parameter ( string name, System.Vector3 v ) : void
Parameter ( string name, System.Vector4 v ) : void
Parameter ( string name, bool x ) : void
Parameter ( string name, float x ) : void
Parameter ( string name, float x, float y ) : void
Parameter ( string name, float x, float y, float z ) : void
Parameter ( string name, float x, float y, float z, float w ) : void
Parameter ( string name, int x ) : void
Parameter ( string name, int x, int y ) : void
Parameter ( string name, int x, int y, int z ) : void
Parameter ( string name, int x, int y, int z, int w ) : void
Parameter ( string name, object obj ) : void
Shader ( Device device ) : System

Private Methods

Method Description
CompileFragmentSource ( string &error ) : bool

Compiles Fragment Source

CompileGeometrySource ( string &error ) : bool

Compiles Geometry Source

CompileVertexSource ( string &error ) : bool

Compiles Vertex Source

DestroyFragmentShader ( ) : void

Detaches and Deletes a Fragment Program.

DestroyGeometryShader ( ) : void

Detaches and Deletes a Geometry Program.

DestroyVertexShader ( ) : void

Detaches and Deletes a Vertex Program.

Dispose ( bool disposing ) : void

Method Details

AppendFragmentSource() public method

Appends the Fragment Shader Source
public AppendFragmentSource ( ) : void
return void

AppendGeometrySource() public method

Appends the Fragment Shader Source
public AppendGeometrySource ( ) : void
return void

AppendVertexSource() public method

Appends the Vertex Shader Source
public AppendVertexSource ( ) : void
return void

Begin() public method

Starts this Program
public Begin ( ) : void
return void

ClearFragmentSource() public method

Clears the Fragment Shader Source
public ClearFragmentSource ( ) : void
return void

ClearGeometrySource() public method

Clears the Geometry Shader Source
public ClearGeometrySource ( ) : void
return void

ClearVertexSource() public method

Clears the Vertex Shader Source.
public ClearVertexSource ( ) : void
return void

Compile() public method

Compiles all Shader Source code into a workable program. Will only compile a Shader Type, Vertex, Fragment or Geometry if the Source for each program is greater than 0 in length.
public Compile ( ) : ShaderCompileResult
return ShaderCompileResult

Dispose() public method

public Dispose ( ) : void
return void

End() public method

Ends this Program
public End ( ) : void
return void

Flush() public method

Flushes out all previously bound data while leaving the Shader still bound.
public Flush ( ) : void
return void

Parameter() public method

public Parameter ( string name, System.Matrix matrix ) : void
name string
matrix System.Matrix
return void

Parameter() public method

public Parameter ( string name, Plane plane ) : void
name string
plane Plane
return void

Parameter() public method

public Parameter ( string name, TextureBase texture ) : void
name string
texture TextureBase
return void

Parameter() public method

public Parameter ( string name, System.Vector2 v ) : void
name string
v System.Vector2
return void

Parameter() public method

public Parameter ( string name, System.Vector3 v ) : void
name string
v System.Vector3
return void

Parameter() public method

public Parameter ( string name, System.Vector4 v ) : void
name string
v System.Vector4
return void

Parameter() public method

public Parameter ( string name, bool x ) : void
name string
x bool
return void

Parameter() public method

public Parameter ( string name, float x ) : void
name string
x float
return void

Parameter() public method

public Parameter ( string name, float x, float y ) : void
name string
x float
y float
return void

Parameter() public method

public Parameter ( string name, float x, float y, float z ) : void
name string
x float
y float
z float
return void

Parameter() public method

public Parameter ( string name, float x, float y, float z, float w ) : void
name string
x float
y float
z float
w float
return void

Parameter() public method

public Parameter ( string name, int x ) : void
name string
x int
return void

Parameter() public method

public Parameter ( string name, int x, int y ) : void
name string
x int
y int
return void

Parameter() public method

public Parameter ( string name, int x, int y, int z ) : void
name string
x int
y int
z int
return void

Parameter() public method

public Parameter ( string name, int x, int y, int z, int w ) : void
name string
x int
y int
z int
w int
return void

Parameter() public method

public Parameter ( string name, object obj ) : void
name string
obj object
return void

Shader() public method

public Shader ( Device device ) : System
device Device
return System