public クラス
ExternalTexture
シーンフォームで表示できる Android の SurfaceTexture
と Surface
を作成します。動画など、SurfaceTexture
に描画可能なものを表示する際に便利です。
getFilamentEngine OpenGL ES テクスチャはシーンシーンによって自動的に作成されます。また、updateTexImage()
は自動的に呼び出され、手動で呼び出すことはできません。
ExternalTexture を使用するには、setExternalTexture(String, ExternalTexture)
を呼び出します。マテリアル パラメータは、'samplerExternal' 型でなければなりません。
パブリック コンストラクタ
ExternalTexture()
新しい Android の
SurfaceTexture と Surface を使用して ExternalTexture を作成します。 |
パブリック メソッド
サーフェス |
getSurface()
getSurfaceTexture() に描画するこの ExternalTexture 用に作成されたサーフェスを取得します。
|
SurfaceTexture |
getSurfaceTexture()
この ExternalTexture 用に作成されたサーフェス テクスチャを取得します。
|