new Switcher(renderer, source)
A switcher selects either one of two sources
Switcher
Parameters:
Name | Type | Description |
---|---|---|
renderer |
GlRenderer | |
source |
Source |
- Implements:
- Source:
Example
let mySwitcher = new Switcher( renderer, [ source1, source2 ]] );