Actual working viewports :)
This commit is contained in:
+4
-8
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user