C# Class OpenRA.Platforms.Default.Shader

Inheritance: OpenRA.Platforms.Default.ThreadAffine, IShader
显示文件 Open project: pchote/OpenRA

Public Methods

Method Description
Render ( System.Action a ) : void
SetBool ( string name, bool value ) : void
SetMatrix ( string name, float mtx ) : void
SetTexture ( string name, ITexture t ) : void
SetVec ( string name, float x ) : void
SetVec ( string name, float x, float y ) : void
SetVec ( string name, float x, float y, float z ) : void
SetVec ( string name, float vec, int length ) : void
Shader ( string name ) : System

Protected Methods

Method Description
CompileShaderObject ( int type, string name ) : uint

Method Details

CompileShaderObject() protected method

protected CompileShaderObject ( int type, string name ) : uint
type int
name string
return uint

Render() public method

public Render ( System.Action a ) : void
a System.Action
return void

SetBool() public method

public SetBool ( string name, bool value ) : void
name string
value bool
return void

SetMatrix() public method

public SetMatrix ( string name, float mtx ) : void
name string
mtx float
return void

SetTexture() public method

public SetTexture ( string name, ITexture t ) : void
name string
t ITexture
return void

SetVec() public method

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

SetVec() public method

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

SetVec() public method

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

SetVec() public method

public SetVec ( string name, float vec, int length ) : void
name string
vec float
length int
return void

Shader() public method

public Shader ( string name ) : System
name string
return System