DesktopWindow クラス
GLFW の可視ウィンドウへレイヤーツリーを表示するデスクトップ向けエンジンウィンドウです。 描画結果を既定のフレームバッファへ転送し、ウィンドウ固有のポインター入力を提供します。
名前空間: FloatSoda.Engine
アセンブリ: FloatSoda.Engine.dll
public class DesktopWindow : IEngineWindow, IDisposable実装するインターフェイス
Section titled “実装するインターフェイス”IEngineWindow, IDisposable
継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”DesktopWindow(Renderer)
Section titled “DesktopWindow(Renderer)”指定したレンダラーの GLFW ウィンドウを表示先として使用するインスタンスを初期化します。
public DesktopWindow(Renderer renderer)パラメーター
Section titled “パラメーター”renderer Renderer
描画と GLFW ウィンドウの管理に使用するレンダラー。
PointerSource
Section titled “PointerSource”このウィンドウの生ポインタ入力源。入力を提供しないウィンドウでは null。
public IRawPointerSource? PointerSource { get; }プロパティの値
Section titled “プロパティの値”IRawPointerSource?
Dispose()
Section titled “Dispose()”ポインター入力と、表示に使用した OpenGL フレームバッファを解放します。
public void Dispose()Present(ILayer)
Section titled “Present(ILayer)”指定されたレイヤーツリーをウィンドウの描画先へ反映します。
public void Present(ILayer layer)パラメーター
Section titled “パラメーター”layer ILayer
反映するレイヤーツリー。nullは指定できません。
描画先を所有するレンダースレッド上で呼び出します。
Resize(SKSizeI)
Section titled “Resize(SKSizeI)”描画先テクスチャ/サーフェスのサイズを変更します。レンダースレッド上で呼ぶ必要があります。
public void Resize(SKSizeI size)パラメーター
Section titled “パラメーター”size SKSizeI
変更後のピクセルサイズ。幅と高さには0より大きい値を指定します。