import { Nullable } from "../types"; declare type Engine = import("./engine").Engine; declare type Scene = import("../scene").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 class EngineStore { /** Gets the list of created engines */ public static Instances = new Array(); /** @hidden */ public static _LastCreatedScene: Nullable = null; /** * Gets the latest created engine */ public static get LastCreatedEngine(): Nullable { if (this.Instances.length === 0) { return null; } return this.Instances[this.Instances.length - 1]; } /** * Gets the latest created scene */ public static get LastCreatedScene(): Nullable { return this._LastCreatedScene; } /** * Gets or sets a global variable indicating if fallback texture must be used when a texture cannot be loaded * @ignorenaming */ public static UseFallbackTexture = true; /** * Texture content used if a texture cannot loaded * @ignorenaming */ public static FallbackTexture = ""; }