Remove ImPlot3D
This commit is contained in:
+9
-4
@@ -9,6 +9,7 @@ namespace SDL3_TestingSuite;
|
||||
public class Program
|
||||
{
|
||||
private static bool _demoWindowVisible = true;
|
||||
private static bool _imPlotDemoVisible;
|
||||
private static bool _fontStuff;
|
||||
private static readonly Dictionary<string, List<uint>?> GlyphsByName = new Dictionary<string, List<uint>?>();
|
||||
private static bool _initialized;
|
||||
@@ -40,6 +41,8 @@ public class Program
|
||||
ImGui.Spacing();
|
||||
ImGui.MenuItem("Demo Window", "", ref _demoWindowVisible);
|
||||
ImGui.Spacing();
|
||||
ImGui.MenuItem("ImPlot Demo Window", "", ref _imPlotDemoVisible);
|
||||
ImGui.Spacing();
|
||||
ImGui.MenuItem("Font Stuff", "", ref _fontStuff);
|
||||
|
||||
ImGui.EndMenuBar();
|
||||
@@ -92,12 +95,12 @@ public class Program
|
||||
|
||||
ImGui.PushFont(null, 24);
|
||||
|
||||
if (GlyphsByName.TryGetValue(fontName, out List<uint> glyphs2))
|
||||
if (GlyphsByName.TryGetValue(fontName, out List<uint>? glyphs2))
|
||||
{
|
||||
float cursorXStart = ImGui.GetCursorPosX();
|
||||
float maxWidth = ImGui.GetContentRegionAvail().X;
|
||||
|
||||
foreach (uint codepoint in glyphs2)
|
||||
foreach (uint codepoint in glyphs2!)
|
||||
{
|
||||
string text = char.ConvertFromUtf32((int)codepoint);
|
||||
float glyphWidth = ImGui.CalcTextSize(text).X;
|
||||
@@ -164,8 +167,10 @@ public class Program
|
||||
if (_demoWindowVisible)
|
||||
{
|
||||
ImGui.ShowDemoWindow(ref _demoWindowVisible);
|
||||
}
|
||||
if (_imPlotDemoVisible)
|
||||
{
|
||||
ImPlot.ShowDemoWindow(ref _demoWindowVisible);
|
||||
// ImPlot3D.ShowDemoWindow(ref _demoWindowVisible);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -200,4 +205,4 @@ public class Program
|
||||
Console.WriteLine($"{message} | {method} | {path}:{line}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user