mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
19 lines
433 B
TypeScript
19 lines
433 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;
|
|
}
|
|
}
|