mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40: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 { GetRoomEngine, RoomEngine } from '@nitrots/room';
|
||||||
import { GetRenderer, GetTexturePool } from '@nitrots/utils';
|
|
||||||
import { Texture, TextureGCSystem, TextureSource } from 'pixi.js';
|
|
||||||
export { };
|
export { };
|
||||||
|
|
||||||
declare global
|
declare global
|
||||||
@ -10,16 +8,10 @@ declare global
|
|||||||
NitroDevTools?:
|
NitroDevTools?:
|
||||||
{
|
{
|
||||||
roomEngine: RoomEngine;
|
roomEngine: RoomEngine;
|
||||||
textureCache: TextureSource<any>[];
|
|
||||||
texturePool: { [index: string]: { [index: string]: Texture[] } };
|
|
||||||
textureGC: TextureGCSystem;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.NitroDevTools = {
|
window.NitroDevTools = {
|
||||||
roomEngine: GetRoomEngine(),
|
roomEngine: GetRoomEngine()
|
||||||
textureCache: GetRenderer().texture.managedTextures,
|
|
||||||
texturePool: GetTexturePool().textures,
|
|
||||||
textureGC: GetRenderer().textureGC
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user