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">

28 lines (25 loc) 634 B
import { ExtensionType } from '../extensions/Extensions.mjs'; import { Culler } from './Culler.mjs'; "use strict"; class CullerPlugin { /** @internal */ static init() { this._renderRef = this.render.bind(this); this.render = () => { Culler.shared.cull(this.stage, this.renderer.screen); this.renderer.render({ container: this.stage }); }; } /** @internal */ static destroy() { this.render = this._renderRef; } } /** @ignore */ CullerPlugin.extension = { priority: 10, type: ExtensionType.Application, name: "culler" }; export { CullerPlugin }; //# sourceMappingURL=CullerPlugin.mjs.map