pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
35 lines (34 loc) • 1.26 kB
TypeScript
import { type ExtensionMetadata, ExtensionType } from '../../extensions/Extensions';
import type { Application } from '../../app/Application';
import type { System } from '../../rendering/renderers/shared/system/System';
import type { Renderer } from '../../rendering/renderers/types';
declare global {
var __PIXI_APP_INIT__: undefined | ((arg: Application | Renderer) => void);
var __PIXI_RENDERER_INIT__: undefined | ((arg: Application | Renderer) => void);
}
/**
* Calls global __PIXI_APP_INIT__ hook with the application instance, after the application is initialized.
* @memberof app
*/
export declare class ApplicationInitHook {
/** @ignore */
static extension: ExtensionMetadata;
static init(): void;
static destroy(): void;
}
/**
* Calls global __PIXI_RENDERER_INIT__ hook with the renderer instance, after the renderer is initialized.
* @memberof rendering
*/
export declare class RendererInitHook implements System {
/** @ignore */
static extension: {
readonly type: readonly [ExtensionType.WebGLSystem, ExtensionType.WebGPUSystem];
readonly name: "initHook";
readonly priority: -10;
};
private _renderer;
constructor(renderer: Renderer);
init(): void;
destroy(): void;
}