Port BeginPlot/EndPlot, SetupLock rendering (frame, title, clip rect, plot box), auto-fit flow, GetPlotRectPos/Size/GetPlotDrawList; add t_plot

This commit is contained in:
4DBug committed 2026-10-17 05:11:32 -05:00
1 parent a0419c4f3d
commit fac72e6f2e
3 files changed
+213 -2

No files matched your search

+4
View File
@@ -64,6 +64,10 @@ ImPlot3D.SetupBoxInitialRotation(10, 20)
ImPlot3D.SetupLegend(ImPlot3D.ImPlot3DLocation.South)
assert(plot.Items.Legend.Location == ImPlot3D.ImPlot3DLocation.South)
plot.Axes[2].Flags = ImPlot3D.ImPlot3DAxisFlags.Invert
-- headless: stub SetupLock's drawing (rendering is covered by t_plot)
ImGui.GetWindowDrawList = function() return setmetatable({}, { __index = function() return function() end end }) end
ImGui.PushClipRect = function() end
I.RenderPlotBox = function() end
ImPlot3D.SetupLock()
assert(plot.SetupLocked and plot.Axes[0].Ticker:TickCount() > 0 and plot.Axes[0].Ticker:GetText(0) == "0.0")
local p = ImPlot3D.ImPlot3DPoint(2.5, 0.3, 175)