C# Class LWisteria.StudiesOfOpenTK.ObjectiveTK.Program

プログラム本体
Inheritance: IDisposable
Show file Open project: aokomoriuta/StudiesOfOpenTK

Public Methods

Method Description
AttachBuffer ( Buffer buffer, VertexAttribution attributions ) : void

バッファーにこのプログラムを割り当てる

ClearBuffer ( ) : void

バッファーをすべて除去する

CreateShader ( string source, ShaderType type ) : int

シェーダーを作成する

Dispose ( ) : void

リソースを解放する

Draw ( ) : void

このプログラムですべてのデータを描画する

Enable ( EnableCap capabilities ) : void

設定を有効化または無効化する

Program ( Viewport viewport, string vertexSource, string geometrySource, string fragmentSource ) : System

プログラムを作成する

SetUniform ( string name, Matrix4 value, bool transpose = false ) : void

4x4行列のUniform変数を設定する

SetUniform ( string name, Vector3 value ) : void

3次元ベクトルのUniform変数を設定する

SetUniform ( string name, float value ) : void

floatスカラーのUniform変数を設定する

Method Details

AttachBuffer() public method

バッファーにこのプログラムを割り当てる
public AttachBuffer ( Buffer buffer, VertexAttribution attributions ) : void
buffer System.Buffer 割り当てるバッファー
attributions VertexAttribution
return void

ClearBuffer() public method

バッファーをすべて除去する
public ClearBuffer ( ) : void
return void

CreateShader() public static method

シェーダーを作成する
public static CreateShader ( string source, ShaderType type ) : int
source string シェーダーのソース
type ShaderType シェーダーの種類
return int

Dispose() public method

リソースを解放する
public Dispose ( ) : void
return void

Draw() public method

このプログラムですべてのデータを描画する
public Draw ( ) : void
return void

Enable() public method

設定を有効化または無効化する
public Enable ( EnableCap capabilities ) : void
capabilities EnableCap 設定
return void

Program() public method

プログラムを作成する
public Program ( Viewport viewport, string vertexSource, string geometrySource, string fragmentSource ) : System
viewport Viewport 描画対象
vertexSource string バーテックスシェーダのソース
geometrySource string ジオメトリシェーダのソース
fragmentSource string フラグメントシェーダのソース
return System

SetUniform() public method

4x4行列のUniform変数を設定する
public SetUniform ( string name, Matrix4 value, bool transpose = false ) : void
name string 変数名
value Matrix4 設定値
transpose bool
return void

SetUniform() public method

3次元ベクトルのUniform変数を設定する
public SetUniform ( string name, Vector3 value ) : void
name string 変数名
value Vector3 設定値
return void

SetUniform() public method

floatスカラーのUniform変数を設定する
public SetUniform ( string name, float value ) : void
name string 変数名
value float 設定値
return void