UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

37 lines (34 loc) 790 B
import { ExtensionType } from '../../extensions/Extensions.mjs'; import { VERSION } from '../const.mjs'; "use strict"; class ApplicationInitHook { static init() { globalThis.__PIXI_APP_INIT__?.(this, VERSION); } static destroy() { } } /** @ignore */ ApplicationInitHook.extension = ExtensionType.Application; class RendererInitHook { constructor(renderer) { this._renderer = renderer; } init() { globalThis.__PIXI_RENDERER_INIT__?.(this._renderer, VERSION); } destroy() { this._renderer = null; } } /** @ignore */ RendererInitHook.extension = { type: [ ExtensionType.WebGLSystem, ExtensionType.WebGPUSystem ], name: "initHook", priority: -10 }; export { ApplicationInitHook, RendererInitHook }; //# sourceMappingURL=globalHooks.mjs.map