SlugMap

class SlugMap(val curves: ColorBuffer, val bands: ColorBuffer) : BoundaryMap(source)

GPU storage for slug curve and band data.

bands is an integer texture and must use NEAREST filtering; integer textures with LINEAR filtering are incomplete and sample as zero, which makes slug rendering silently draw nothing. NEAREST is set on construction and re-applied by SlugDrawer before drawing.

Constructors

Link copied to clipboard
constructor(curves: ColorBuffer, bands: ColorBuffer)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun addShape(shape: Shape, fillRule: FillRule = FillRule.NON_ZERO, quadraticTolerance: Double = 1.0): Int

Adds the boundary of shape and returns its index

Link copied to clipboard
open override fun endBatch()
Link copied to clipboard
open override fun startBatch()

Begins a new batching operation for the SlugMap.