mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
Update DevTools
This commit is contained in:
parent
55ca102095
commit
afe14eafe9
@ -1,6 +1,4 @@
|
||||
import { GetRoomEngine, RoomEngine } from '@nitrots/room';
|
||||
import { GetRenderer, GetTexturePool } from '@nitrots/utils';
|
||||
import { Texture, TextureGCSystem, TextureSource } from 'pixi.js';
|
||||
export { };
|
||||
|
||||
declare global
|
||||
@ -10,16 +8,10 @@ declare global
|
||||
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
|
||||
roomEngine: GetRoomEngine()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user