Actual working viewports :)

This commit is contained in:
2026-05-18 10:43:19 -05:00
parent fc0b04a4bc
commit 7167d98cb6
5 changed files with 234 additions and 268 deletions
+4 -8
View File
@@ -1,12 +1,8 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using System.Numerics;
using System.Runtime.InteropServices;
using Hexa.NET.ImGui;
using Hexa.NET.ImGui.Utilities;
using Hexa.NET.ImGuizmo;
using Hexa.NET.ImPlot;
using Hexa.NET.ImPlot3D;
using SDL3;
namespace SDL3_TestingSuite.SDL3;
@@ -54,7 +50,7 @@ public sealed unsafe class SDL3Window : IDisposable
ImGuiIOPtr io = ImGui.GetIO();
io.ConfigFlags |= ImGuiConfigFlags.NavEnableKeyboard | ImGuiConfigFlags.NavEnableGamepad | ImGuiConfigFlags.DockingEnable;
// io.ConfigFlags |= ImGuiConfigFlags.ViewportsEnable;
io.ConfigFlags |= ImGuiConfigFlags.ViewportsEnable;
io.Fonts.Flags |= ImFontAtlasFlags.NoBakedLines;
io.Fonts.AddFontDefault();
@@ -96,8 +92,8 @@ public sealed unsafe class SDL3Window : IDisposable
}
// Init platform and renderer
ImGuiSDL3Platform.Init(Window, Renderer);
ImGuiSDL3Renderer.Init(Renderer);
ImGuiSDL3Platform.Init(Window, Renderer, this);
ImGuiSDL3Renderer.Init(Renderer, this);
}
public void Run()