sdfsdfs
This commit is contained in:
36
node_modules/pixi.js/lib/utils/global/globalHooks.mjs
generated
vendored
Normal file
36
node_modules/pixi.js/lib/utils/global/globalHooks.mjs
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
Reference in New Issue
Block a user