Renderer クラス
レイヤーツリーを GLView の Skia サーフェスへ描画します。
名前空間: FloatSoda.Engine
アセンブリ: FloatSoda.Engine.dll
public class Renderer : IDisposable実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
GLView
Section titled “GLView”描画先と OpenGL リソースを所有するビューを取得します。
public required GLView GLView { get; init; }プロパティの値
Section titled “プロパティの値”Dispose()
Section titled “Dispose()”描画先の GLView と、その Skia および OpenGL リソースを解放します。
public void Dispose()GetTextureHandle()
Section titled “GetTextureHandle()”描画結果を保持する OpenGL テクスチャのネイティブハンドルを取得します。
public nint GetTextureHandle()OpenGL テクスチャ名をポインター値へ変換したハンドル。
Render(ILayer)
Section titled “Render(ILayer)”描画先を透明色でクリアし、指定したレイヤーツリーを描画してコマンドを送信します。
public void Render(ILayer root)パラメーター
Section titled “パラメーター”root ILayer
描画するレイヤーツリーのルート。
Resize(int, int)
Section titled “Resize(int, int)”描画先の GLView を指定サイズにリサイズします。GL 呼び出しのためレンダースレッド上で呼びます。
public void Resize(int width, int height)パラメーター
Section titled “パラメーター”width int
新しい描画先の幅(ピクセル)。
height int
新しい描画先の高さ(ピクセル)。
Resize(SKSizeI)
Section titled “Resize(SKSizeI)”描画先の GLView を指定サイズにリサイズします。GL 呼び出しのためレンダースレッド上で呼びます。
public void Resize(SKSizeI size)パラメーター
Section titled “パラメーター”size SKSizeI
新しい描画先のピクセルサイズ。