Closed Benoit9 closed 1 month ago
That's the only example I'm aware of I'm afraid :sweat_smile: What are the errors you get when you try running it? Note that that example is for embedding ImGui inside GLMakie, there's another discussion here about embedding GLMakie in ImGui: https://github.com/Gnimuc/CImGui.jl/discussions/112
Well, there are changes to the API that are easily fixed, like using CImGui.GLFWBackend
that becomes using CImGui.ImGuiGLFWBackend
But then, a line like:
ImGui_ImplGlfw_InitForOpenGL(GLMakie.to_native(GLMakie.global_gl_screen()), true)
I have no clue what to do with.
I have been told on Discourse to replace
screen = AbstractPlotting.backend_display(GLMakie.GLBackend(), scene)
set_window_config!(renderloop=imgui_renderloop)
with:
new_screen = display(scene, backend = GLMakie)
GLMakie.activate!(; config_kwargs...)
That helps.
GLMakie in Imgui or the other way around would work for me. If there is some WIP, I can try and contribute... Thanks!
I see :+1: I don't have the bandwidth to look into it more ATM (though it's on my todo list), but if you don't need Makie specifically you might be interested in ImPlot.jl as an alternative plotting library: https://github.com/wsphillips/ImPlot.jl
OK, thanks! I I find something I will report back.
Hi, I was looking for something similar ie GLMakie plot inside CImGui window (for my use case). Any news?
Not from me unfortunately, though it's still on my todo list :see_no_evil: I think for now ImPlot.jl is probably your best bet for plotting.
Here's an extremely experimental demo:
Known bugs/things that don't work:
MakieWindow
isn't getting destroyed before the renderloop exits.This is now in v2.1, please give it a go and open an issue/PR if you find problems (which you almost certainly will :stuck_out_tongue: ).
I ran across this nice example: https://gist.github.com/SteffenPL/88f65222bf786a6434bc2da3ae02ac74
Unfortunately, both Makie and CimGui have changed since then, and I can't figure out how to adapt the code to the new APIs.
Would there be another example somewhere, or could someone give me some hints?
Thanks a lot!