Repository navigation
Replies: 3 comments 5 replies
|
GLFW handles your window management if you dont actually have a window yet. Since the host usually provides one for you as the plugin you should not need to use either of these and only handle rendering on the provided window (see the gui extension) |
|
I made clap saw demo work with SDL2 more or less a couple of years ago but never pushed the code to GitHub. If you want to see it and finish what i started I could push it to a private repo. when schwa frank and i were looking at imgui it only supported a single window. they have updated that and the clap ingot example works. https://github.com/free-audio/clap-saw-demo-imgui |
|
here's a full example using SDL3 (+ opengl): https://codeberg.org/alloyed/KitsBlips/src/branch/main/kitgui/src/impl/sdl/contextImpl.cpp caveats: This can't work on Mac OS without changes to SDL itself, and while I think it's possible to work on windows i found it harder and more fiddly than just working with the windows API directly. Why it can't work on MacOS: libsdl-org/SDL#12141 The reason it can't work on windows is that many hosts (including bitwig) don't implement CLAP_EXT_TIMER_SUPPORT, which means to get a proper windows timer you need to override the windows event loop. SDL does have hooks for this technically, but this was too fiddly for me :p as mentioned. there's a different file in that folder that does windows. I think pugl is an interesting alternative, but i found out about it way too late, so the version in that folder is basically a single day's experiment that didn't totally work. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm interested in writing a plug-in using the CLAP API (I've written some with JUCE before) and am looking at ways to generate the GUI. I came across this repository which uses Dear ImGui/GLFW (https://github.com/schwaaa/clap-imgui) but also this thread in which someone calls it a dead-end (https://www.kvraudio.com/forum/viewtopic.php?t=583140&start=420)
They say the reason it's a dead end is because GLFW can only have 1 window, but it clearly does have support for multiple windows: https://discourse.glfw.org/t/how-to-create-multiple-window/1398
So what is it that actually makes these libraries incompatible? Or is it worth investigating? What about SDL?
All reactions