mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 19:12:36 +01:00
19 lines
434 B
TypeScript
19 lines
434 B
TypeScript
import { Application, IApplicationOptions } from '@pixi/app';
|
|
|
|
export class PixiApplicationProxy extends Application
|
|
{
|
|
private static INSTANCE: Application = null;
|
|
|
|
constructor(options?: IApplicationOptions)
|
|
{
|
|
super(options);
|
|
|
|
if (!PixiApplicationProxy.INSTANCE) PixiApplicationProxy.INSTANCE = this;
|
|
}
|
|
|
|
public static get instance(): Application
|
|
{
|
|
return this.INSTANCE || null;
|
|
}
|
|
}
|