engineStore.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Observable } from "../Misc/observable";
  2. import type { Nullable } from "../types";
  3. import type { AbstractEngine } from "./abstractEngine";
  4. import type { Scene } from "../scene";
  5. /**
  6. * The engine store class is responsible to hold all the instances of Engine and Scene created
  7. * during the life time of the application.
  8. */
  9. export declare class EngineStore {
  10. /** Gets the list of created engines */
  11. static Instances: AbstractEngine[];
  12. /**
  13. * Notifies when an engine was disposed.
  14. * Mainly used for static/cache cleanup
  15. */
  16. static OnEnginesDisposedObservable: Observable<AbstractEngine>;
  17. /** @internal */
  18. static _LastCreatedScene: Nullable<Scene>;
  19. /**
  20. * Gets the latest created engine
  21. */
  22. static get LastCreatedEngine(): Nullable<AbstractEngine>;
  23. /**
  24. * Gets the latest created scene
  25. */
  26. static get LastCreatedScene(): Nullable<Scene>;
  27. /**
  28. * Gets or sets a global variable indicating if fallback texture must be used when a texture cannot be loaded
  29. * @ignorenaming
  30. */
  31. static UseFallbackTexture: boolean;
  32. /**
  33. * Texture content used if a texture cannot loaded
  34. * @ignorenaming
  35. */
  36. static FallbackTexture: string;
  37. }