How to use the @bentley/bentleyjs-core.dispose function in @bentley/bentleyjs-core

To help you get started, we’ve selected a few @bentley/bentleyjs-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imodeljs / imodeljs / core / frontend / src / IModelApp.ts View on Github external
public static shutdown() {
    if (!this._initialized)
      return;

    this._wantEventLoop = false;
    window.removeEventListener("resize", IModelApp.requestNextAnimation);
    this.clearIntervalAnimation();
    [this.toolAdmin, this.viewManager, this.tileAdmin].forEach((sys) => sys.onShutDown());
    this._renderSystem = dispose(this._renderSystem);
    this._entityClasses.clear();
    this._initialized = false;
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / PlanarClassifier.ts View on Github external
public dispose() {
    this._colorTexture = dispose(this._colorTexture);
    this._featureTexture = dispose(this._featureTexture);
    this._hiliteTexture = dispose(this._hiliteTexture);
    this._fbo = dispose(this._fbo);
    this._hiliteFbo = dispose(this._hiliteFbo);
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / Mesh.ts View on Github external
public dispose() {
    dispose(this._buffers);
    dispose(this._indices);
  }
github imodeljs / imodeljs / core / frontend / src / tile / Tile.ts View on Github external
public dispose() {
    this._graphic = dispose(this._graphic);
    this._rangeGraphic = dispose(this._rangeGraphic);
    this._rangeGraphicType = Tile.DebugBoundingBoxes.None;

    if (this._children)
      for (const child of this._children)
        dispose(child);

    this._children = undefined;
    this._state = TileState.Abandoned;
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / PlanarClassifier.ts View on Github external
public dispose() {
    this._colorTexture = dispose(this._colorTexture);
    this._featureTexture = dispose(this._featureTexture);
    this._hiliteTexture = dispose(this._hiliteTexture);
    this._fbo = dispose(this._fbo);
    this._hiliteFbo = dispose(this._hiliteFbo);
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / PointCloud.ts View on Github external
public dispose() {
    dispose(this.buffers);
    dispose(this._vertices);
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / InstancedGeometry.ts View on Github external
public dispose() {
    dispose(this.transforms);
    dispose(this.featureIds);
    dispose(this.symbology);
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / Polyline.ts View on Github external
public dispose() {
    dispose(this.lut);
    dispose(this._buffers);
  }
github imodeljs / imodeljs / core / frontend / src / render / webgl / PointString.ts View on Github external
public dispose() {
    dispose(this.buffers);
    dispose(this.lut);
    dispose(this.indices);
  }