Class State<Value> Abstract
Constructors
constructor
Type Parameters
Parameters
Returns State<Value>
Properties
Protected _dependency
Protected _gl
Protected _value
_value: Value
Accessors
value
Returns Value
Methods
Protected Abstract _glSet
- _glSet(value: Value): void
Parameters
Returns void
Protected Abstract _isSameValue
- _isSameValue(newValue: Value): boolean
Parameters
Returns boolean
setValue
- setValue(newValue: Value): void
Parameters
Returns void
setValueIfEnabled
- setValueIfEnabled(newValue: Value): void
Parameters
Returns void
如果没有依赖,或者依赖的值是开启的,直接更新,否则忽略