C# Class LWisteria.StudiesOfOpenTK.ObjectiveTK.Program

プログラム本体
Inheritance: IDisposable
Afficher le fichier Open project: aokomoriuta/StudiesOfOpenTK

Méthodes publiques

Méthode 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 méthode

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

ClearBuffer() public méthode

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

CreateShader() public static méthode

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

Dispose() public méthode

リソースを解放する
public Dispose ( ) : void
Résultat void

Draw() public méthode

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

Enable() public méthode

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

Program() public méthode

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

SetUniform() public méthode

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

SetUniform() public méthode

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

SetUniform() public méthode

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