mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-30 03:00:51 +01:00
26 lines
680 B
TypeScript
26 lines
680 B
TypeScript
import { GetRoomEngine, RoomEngine } from '@nitrots/room';
|
|
import { GetRenderer, GetTexturePool } from '@nitrots/utils';
|
|
import { Texture, TextureGCSystem, TextureSource } from 'pixi.js';
|
|
export { };
|
|
|
|
declare global
|
|
{
|
|
interface Window
|
|
{
|
|
NitroDevTools?:
|
|
{
|
|
roomEngine(): RoomEngine;
|
|
textureCache(): TextureSource<any>[];
|
|
texturePool(): { [index: string]: { [index: string]: Texture[] } };
|
|
textureGC(): TextureGCSystem;
|
|
};
|
|
}
|
|
}
|
|
|
|
window.NitroDevTools = {
|
|
roomEngine: () => GetRoomEngine(),
|
|
textureCache: () => GetRenderer().texture.managedTextures,
|
|
texturePool: () => GetTexturePool().textures,
|
|
textureGC: () => GetRenderer().textureGC
|
|
};
|