This repository was archived by the owner on Sep 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Linq ;
23using ImGuiNET ;
34using Raylib_cs ;
45using SharpEngine . Utils ;
@@ -30,14 +31,27 @@ public static class DebugManager
3031 /// <summary>
3132 /// Create ImGui Window for SharpEngine
3233 /// </summary>
33- public static void CreateSeImGuiWindow ( )
34+ public static void CreateSeImGuiWindow ( Window window )
3435 {
3536 ImGui . Begin ( "SharpEngine Debug" ) ;
3637 ImGui . Text ( $ "SharpEngine Version : { SeVersion } ") ;
3738 ImGui . Separator ( ) ;
3839 ImGui . Text ( $ "FPS from ImGui : { 1000.0 / ImGui . GetIO ( ) . Framerate : .000} ms/frame ({ ImGui . GetIO ( ) . Framerate } FPS)") ;
3940 ImGui . Text ( $ "FPS from SE : { 1000.0 / FrameRate : .000} ms/frame ({ FrameRate } FPS)") ;
4041 ImGui . Text ( $ "GC Memory : { GcMemory / 1000000.0 : .000} mo") ;
42+ ImGui . Separator ( ) ;
43+ ImGui . Text ( $ "Textures Number : { window . TextureManager . Textures . Count } ") ;
44+ ImGui . Text ( $ "Fonts Number : { window . FontManager . Fonts . Count } ") ;
45+ ImGui . Text ( $ "Sounds Number : { window . SoundManager . Sounds . Count } ") ;
46+ ImGui . Text ( $ "Musics Number : { window . MusicManager . Musics . Count } ") ;
47+ ImGui . Text ( $ "Langs Number : { LangManager . Langs . Count } ") ;
48+ ImGui . Text ( $ "Saves Number : { SaveManager . Saves . Count } ") ;
49+ ImGui . Text ( $ "Scenes Number : { window . Scenes . Count } ") ;
50+ ImGui . Text ( $ "Entities Number : { window . Scenes . Select ( x => x . Entities . Count ) . Sum ( ) } ") ;
51+ ImGui . Separator ( ) ;
52+ ImGui . Text ( $ "Camera Mode : { window . CameraManager . Mode } ") ;
53+ ImGui . Text ( $ "Camera Position : { window . CameraManager . Camera2D . target } ") ;
54+ ImGui . Text ( $ "Camera Rotation : { window . CameraManager . Rotation } ") ;
4155 ImGui . End ( ) ;
4256 }
4357
You can’t perform that action at this time.
0 commit comments