Class: Switcher

Module#Switcher(renderer, source)

new Switcher(renderer, source)

A switcher selects either one of two sources

Switcher

Parameters:
Name Type Description
renderer GlRenderer
source Source
Implements:
Author:
  • Sense Studios
Source:
Example
let mySwitcher = new Switcher( renderer, [ source1, source2 ]] );