公開類別 ExternalTexture
建立可透過場景顯示的 Android SurfaceTexture
和 Surface
。用於顯示影片,或是任何可繪製至 SurfaceTexture
的任何內容。
getFilamentEngine OpenGL ES 紋理由 Sceneform 自動建立。此外,系統會自動呼叫 updateTexImage()
,因此不應手動呼叫。
呼叫 setExternalTexture(String, ExternalTexture)
即可使用 ExternalTexture。
材質參數類型必須為「#39;samplerExternal'」類型。
公用建構函式
ExternalTexture()
使用新的 Android
SurfaceTexture 和 Surface 建立 ExternalTexture。 |
公用方法
途徑 |
getSurface()
取得為這個外部 ExternalTexture 繪製的
getSurfaceTexture() 途徑 |
SurfaceTexture |
getSurfaceTexture()
取得為這個 ExternalTexture 建立的途徑紋理。
|