cfillion / reaimgui

ReaScript binding and REAPER backend for the Dear ImGui toolkit.
https://forum.cockos.com/showthread.php?t=250419
GNU Lesser General Public License v3.0
59 stars 9 forks source link

is it possible to use this in an extension with the REAPER SDK? #21

Closed jamesb93 closed 1 month ago

jamesb93 commented 1 month ago

As the title suggests, is this possible or would it involve starting with a different approach / build system?

cfillion commented 1 month ago

Yes, ReaImGui provides C++17 and Zig bindings for use in extensions. See examples/hello_world.cpp. reaper_imgui_functions.h can be found in the Releases page.

jamesb93 commented 1 month ago

Thanks! Super.

jamesb93 commented 1 month ago

I wonder if you can help pointing out where I am going wrong possibly. When I compile my plugin, it works fine. When I run the action, a window is not spawned but running under a debugger I see that the loop and frame functions are successfully called.

https://github.com/jamesb93/reacoma-3

jamesb93 commented 1 month ago

I also see the same behaviour with the example you pointed me to, so I wonder if maybe its something to do with me using cmake to do my building for me also.

cfillion commented 1 month ago

a window is not spawned [...] I also see the same behaviour with the example you pointed me to

Are you on macOS 15 by any chance? If so, update to v0.9.3 which fixes compatibility (fa70cd49ccf9fde4035a552df8013ddf998b5556). If not, does ReaImGui_Demo.lua work fine?

jamesb93 commented 1 month ago

Ah.... yes. That is probably it.

I'll check this out in two ticks.

jamesb93 commented 1 month ago

That worked! Thanks.