ExternalTexture

public クラス ExternalTexture

シーンフォームで表示できる Android の SurfaceTextureSurface を作成します。動画など、SurfaceTexture に描画可能なものを表示する際に便利です。

getFilamentEngine OpenGL ES テクスチャはシーンシーンによって自動的に作成されます。また、updateTexImage() は自動的に呼び出され、手動で呼び出すことはできません。

ExternalTexture を使用するには、setExternalTexture(String, ExternalTexture) を呼び出します。マテリアル パラメータは、'samplerExternal' 型でなければなりません。

パブリック コンストラクタ

ExternalTexture()
新しい Android の SurfaceTextureSurface を使用して ExternalTexture を作成します。

パブリック メソッド

サーフェス
getSurface()
getSurfaceTexture() に描画するこの ExternalTexture 用に作成されたサーフェスを取得します。
SurfaceTexture
getSurfaceTexture()
この ExternalTexture 用に作成されたサーフェス テクスチャを取得します。

継承されるメソッド

パブリック コンストラクタ

public ExternalTexture ()

新しい Android の SurfaceTextureSurface を使用して ExternalTexture を作成します。

パブリック メソッド

public Surface getSurface ()

getSurfaceTexture() に描画するこの ExternalTexture 用に作成されたサーフェスを取得します。

public SurfaceTexture getSurfaceTexture ()

この ExternalTexture 用に作成されたサーフェス テクスチャを取得します。