Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit abff0e8

Browse files
author
Alexis Huvier
committed
feat(debug): Upgrade CreateSeImGuiWindow
1 parent c9885e4 commit abff0e8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

SharpEngine/Manager/DebugManager.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Linq;
23
using ImGuiNET;
34
using Raylib_cs;
45
using 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

0 commit comments

Comments
 (0)