SurfaceMirrorer

Displays the Camera stream using Filament.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class SurfaceMirror(val surface: Surface, var swapChain: SwapChain?, val viewport: Viewport)

Functions

Link copied to clipboard
fun onFrame(sceneView: SceneView)
Link copied to clipboard
fun startMirroring(sceneView: SceneView, surface: Surface, left: Int = 0, bottom: Int = 0, width: Int = sceneView.width, height: Int = sceneView.height)

Mirror the rendering to a surface.

Link copied to clipboard
fun stopMirroring(sceneView: SceneView, surface: Surface)

Stops mirroring to the specified Surface.