C# Class Sparrow.Core.Program

ファイルを表示 Open project: fmotagarcia/sparrow-sharp

Public Properties

Property Type Description
Attributes int>.Dictionary
Uniforms int>.Dictionary

Public Methods

Method Description
Description ( ) : string
Program ( string vertexShader, string fragmentShader ) : System

Initializes a GLSL program by compiling vertex and fragment shaders from source. In debug mode, compilation erros are logged into the console.

Protected Methods

Method Description
Init ( string vertexShader, string fragmentShader ) : void
Program ( ) : System

Private Methods

Method Description
Compile ( ) : void
CompileShader ( string source, ShaderType type ) : int
UpdateAttributes ( ) : void
UpdateUniforms ( ) : void

Method Details

Description() public method

public Description ( ) : string
return string

Init() protected method

protected Init ( string vertexShader, string fragmentShader ) : void
vertexShader string
fragmentShader string
return void

Program() protected method

protected Program ( ) : System
return System

Program() public method

Initializes a GLSL program by compiling vertex and fragment shaders from source. In debug mode, compilation erros are logged into the console.
public Program ( string vertexShader, string fragmentShader ) : System
vertexShader string
fragmentShader string
return System

Property Details

Attributes public_oe property

public Dictionary Attributes
return int>.Dictionary

Uniforms public_oe property

public Dictionary Uniforms
return int>.Dictionary