You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user