Julia wrapper for ImPlot3D (via CImPlot3D_jll),
sharing the Dear ImGui context with CImGui.jl.
import CImGui as ig, ImPlot3D
using Colors
ctx = ig.CreateContext()
pctx = ImPlot3D.CreateContext() # NB: no SetImGuiContext — shared via linkage
ig.render(ctx; window_title="3D") do
if ImPlot3D.BeginPlot("##p", "x", "y", "z")
t = range(0, 6pi; length=300)
ImPlot3D.PlotLine("helix", cos.(t), sin.(t), collect(t)./6pi; line_color=RGB(0,0.4,1), line_weight=2)
ImPlot3D.EndPlot()
end
end
ImPlot3D.DestroyContext(pctx)Functions are accessed qualified (ImPlot3D.PlotLine, …); names mirror ImPlot3D's C++ API.