Files
nothoughts/node_modules/pixi.js/lib/utils/global/globalHooks.mjs
2025-08-04 18:57:35 +02:00

37 lines
790 B
JavaScript

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