webgl-operate
webgl-operate copied to clipboard
reduce re-implementation of common templates
this issue is intended for collecting small patterns that are heavily/frequently used within webgl-operates code basis. I would like to see these "snippets" replaced by, e.g., some form of meta programming, transpiling, or something similar ...
Setter only setting when different:
set object(object: Type) {
if (object === this._object) {
return;
}
this._object = object;
/* bookmark alteration or trigger some update/recomputation ... */
...
}