Render Context
data class RenderContext<RenderableType>(var paintStyle: LayerPaint, var elapsedTime: Duration = Duration.ZERO, var renderables: List<RenderableType> = listOf(), var zoomLevel: Double = 0.0) : LayerRenderContext<RenderableType>
Per-frame render state passed to a TileLayerRenderer: the paint style to render with, the renderables to draw, elapsed animation time, and the current zoom level.
Constructors
Link copied to clipboard
constructor(paintStyle: LayerPaint, elapsedTime: Duration = Duration.ZERO, renderables: List<RenderableType> = listOf(), zoomLevel: Double = 0.0)
Properties
Link copied to clipboard
Time elapsed since the layer's animation began; drives time-based rendering effects.
Link copied to clipboard
The paint/style configuration to render this frame's renderables with.
Link copied to clipboard
The drawable items to render this frame, e.g. tiles resolved for the current viewport.