SkiaOnFrameState

data class SkiaOnFrameState(val frameTexture: Image, val canvas: Canvas)

Represents the state for rendering a Frame, see renderToTexture.

Constructors

Link copied to clipboard
constructor(frameTexture: Image, canvas: Canvas)

Properties

Link copied to clipboard
val canvas: Canvas

The GPU canvas to draw the frameTexture in. It is already transformed so that drawing the frameTexture at (0, 0) draws it upright (counter-rotated and un-mirrored).

Link copied to clipboard
val frameTexture: Image

The Frame wrapped as a drawable GPU texture.