BoundaryDrawer

Draws boundaries from a BoundaryMap. Each kind of drawer draws from its own kind of map, created with createMap, drawing from another kind of map fails.

Inheritors

Properties

Link copied to clipboard
abstract var contrast: Double

How much the coverage of edges in dark colors is increased, 0.0 for uncorrected coverage

Link copied to clipboard
abstract val instances: VertexBuffer

The instance buffer that commands are prepared in by default

Link copied to clipboard

Boundaries that are at most this many pixels in width and height are drawn from approximate ink profiles instead of from their curves, 0.0 to always draw from the curves

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Creates a map for the boundaries this drawer draws, with curve and band textures of width x height texels

Link copied to clipboard
Link copied to clipboard
abstract fun createMap(): BoundaryMap

Creates a map for the boundaries this drawer draws

Link copied to clipboard
abstract fun draw(drawer: Drawer, map: BoundaryMap)

Draws the commands last prepared in instances

abstract fun draw(drawer: Drawer, map: BoundaryMap, command: BoundaryDrawCommand)

Draws the prepared command with the draw state of drawer

Link copied to clipboard
abstract fun prepare(map: BoundaryMap, commands: List<BoundaryCommand>, instances: VertexBuffer = this.instances): BoundaryDrawCommand

Prepares commands in instances