12345678910111213141516171819202122232425262728293031323334353637 |
- import { Observable } from "../Misc/observable";
- import type { Nullable } from "../types";
- import type { AbstractEngine } from "./abstractEngine";
- import type { Scene } from "../scene";
- /**
- * The engine store class is responsible to hold all the instances of Engine and Scene created
- * during the life time of the application.
- */
- export declare class EngineStore {
- /** Gets the list of created engines */
- static Instances: AbstractEngine[];
- /**
- * Notifies when an engine was disposed.
- * Mainly used for static/cache cleanup
- */
- static OnEnginesDisposedObservable: Observable<AbstractEngine>;
- /** @internal */
- static _LastCreatedScene: Nullable<Scene>;
- /**
- * Gets the latest created engine
- */
- static get LastCreatedEngine(): Nullable<AbstractEngine>;
- /**
- * Gets the latest created scene
- */
- static get LastCreatedScene(): Nullable<Scene>;
- /**
- * Gets or sets a global variable indicating if fallback texture must be used when a texture cannot be loaded
- * @ignorenaming
- */
- static UseFallbackTexture: boolean;
- /**
- * Texture content used if a texture cannot loaded
- * @ignorenaming
- */
- static FallbackTexture: string;
- }
|