C# Class CSharpGL.Renderer

Exibir arquivo Open project: bitzhuwei/CSharpGL Class Usage Examples

Private Properties

Property Type Description
GetVariableArray object
SetUniformValues void
StatesOff void
StatesOn void

Public Methods

Method Description
GetUniformBoolArrayValue ( string varNameInShader, bool &value ) : bool

GetUniformFloatArrayValue ( string varNameInShader, float &value ) : bool

GetUniformMat2ArrayValue ( string varNameInShader, CSharpGL.mat2 &value ) : bool

GetUniformMat3ArrayValue ( string varNameInShader, mat3 &value ) : bool

GetUniformMat4ArrayValue ( string varNameInShader, CSharpGL.mat4 &value ) : bool

GetUniformSamplerArrayValue ( string varNameInShader, samplerValue &value ) : bool

GetUniformVec2ArrayValue ( string varNameInShader, vec2 &value ) : bool

GetUniformVec3ArrayValue ( string varNameInShader, vec3 &value ) : bool

GetUniformVec4ArrayValue ( string varNameInShader, vec4 &value ) : bool

SetUniform ( string varNameInShader, bool value ) : bool

SetUniform ( string varNameInShader, float value ) : bool

SetUniform ( string varNameInShader, CSharpGL.mat2 value ) : bool

SetUniform ( string varNameInShader, mat3 value ) : bool

SetUniform ( string varNameInShader, CSharpGL.mat4 value ) : bool

SetUniform ( string varNameInShader, samplerValue value ) : bool

SetUniform ( string varNameInShader, vec2 value ) : bool

SetUniform ( string varNameInShader, vec3 value ) : bool

SetUniform ( string varNameInShader, vec4 value ) : bool

Protected Methods

Method Description
DisposeUnmanagedResources ( ) : void

DoInitialize ( ) : void

DoRender ( RenderEventArgs arg ) : void

Private Methods

Method Description
GetVariableArray ( Array value, string varNameInShader ) : object

SetUniformValues ( ShaderProgram program ) : void
StatesOff ( GLState stateList ) : void
StatesOn ( GLState stateList ) : void

Method Details

DisposeUnmanagedResources() protected method

protected DisposeUnmanagedResources ( ) : void
return void

DoInitialize() protected method

protected DoInitialize ( ) : void
return void

DoRender() protected method

protected DoRender ( RenderEventArgs arg ) : void
arg RenderEventArgs
return void

GetUniformBoolArrayValue() public method

public GetUniformBoolArrayValue ( string varNameInShader, bool &value ) : bool
varNameInShader string
value bool
return bool

GetUniformFloatArrayValue() public method

public GetUniformFloatArrayValue ( string varNameInShader, float &value ) : bool
varNameInShader string
value float
return bool

GetUniformMat2ArrayValue() public method

public GetUniformMat2ArrayValue ( string varNameInShader, CSharpGL.mat2 &value ) : bool
varNameInShader string
value CSharpGL.mat2
return bool

GetUniformMat3ArrayValue() public method

public GetUniformMat3ArrayValue ( string varNameInShader, mat3 &value ) : bool
varNameInShader string
value mat3
return bool

GetUniformMat4ArrayValue() public method

public GetUniformMat4ArrayValue ( string varNameInShader, CSharpGL.mat4 &value ) : bool
varNameInShader string
value CSharpGL.mat4
return bool

GetUniformSamplerArrayValue() public method

public GetUniformSamplerArrayValue ( string varNameInShader, samplerValue &value ) : bool
varNameInShader string
value samplerValue
return bool

GetUniformVec2ArrayValue() public method

public GetUniformVec2ArrayValue ( string varNameInShader, vec2 &value ) : bool
varNameInShader string
value vec2
return bool

GetUniformVec3ArrayValue() public method

public GetUniformVec3ArrayValue ( string varNameInShader, vec3 &value ) : bool
varNameInShader string
value vec3
return bool

GetUniformVec4ArrayValue() public method

public GetUniformVec4ArrayValue ( string varNameInShader, vec4 &value ) : bool
varNameInShader string
value vec4
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, bool value ) : bool
varNameInShader string
value bool
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, float value ) : bool
varNameInShader string
value float
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, CSharpGL.mat2 value ) : bool
varNameInShader string
value CSharpGL.mat2
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, mat3 value ) : bool
varNameInShader string
value mat3
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, CSharpGL.mat4 value ) : bool
varNameInShader string
value CSharpGL.mat4
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, samplerValue value ) : bool
varNameInShader string
value samplerValue
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, vec2 value ) : bool
varNameInShader string
value vec2
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, vec3 value ) : bool
varNameInShader string
value vec3
return bool

SetUniform() public method

public SetUniform ( string varNameInShader, vec4 value ) : bool
varNameInShader string
value vec4
return bool