PresetSlot
class PresetSlot<P : Preset>(targets: List<StyleParameters>, val name: String, val contract: GlslContract, initial: P) : ReadWriteProperty<Any?, P> (source)
A property that holds a preset and sets it as the parameter name of every one of targets: shade styles, the passes of a filter, or the function of another preset. Assigned presets must have contract.
Constructors
Link copied to clipboard
a slot that sets its preset as the parameter name of parameters