ExternalTexture

open class ExternalTexture

Creates an Android SurfaceTexture and Surface that can be displayed by Sceneform. Useful for displaying video, or anything else that can be drawn to a SurfaceTexture.

The getFilamentEngine OpenGL ES texture is automatically created by Sceneform. Also, updateTexImage is automatically called and should not be called manually.

Call setExternalTexture to use an ExternalTexture. The material parameter MUST be of type 'samplerExternal'.

Constructors

Link copied to clipboard
constructor(engine: Engine)
Creates an ExternalTexture with a new Android SurfaceTexture and Surface.

Properties

Link copied to clipboard
open val filamentStream: Stream
Link copied to clipboard
open val filamentTexture: Texture
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun destroy()