Looking for a simple GUI library that works with Vulkan on SDL2

Luna luna at foxgirls.gay
Tue Jul 8 10:35:41 UTC 2025


On Wednesday, 19 February 2025 at 15:21:19 UTC, Danny Arends 
wrote:
> Hey all,
>
> I am looking to integrate a GUI library like IMgui / Nuklear 
> into my app that uses Vulkan within SDL2 for rendering so that 
> it can run on Windows, Linux, and Android 
> (https://github.com/DannyArends/CalderaD).
>
> I've tried several different bindings to IMgui, however, none 
> seem to work and seem abandoned to me (the most recent updated 
> one 'bindbc-imgui' was updated 3 years ago).
>
> For Nuklear, the most up2date package (bindbc-nuklear) seems to 
> build, but doesn't provide a Vulkan back-end example so I'm 
> kind of stuck with how I'm supposed to integrate it (I might 
> make the effort to translate the C-code example provided in the 
> https://github.com/Immediate-Mode-UI/Nuklear repository to D)
>
> But this got me wondering, what is the state of the art GUI 
> library in D, when I am using modern OpenGL or Vulkan ? Does 
> anyone have any tips or tricks on how to achieve a basic GUI ? 
> (without writing yet another GUI library binding from scratch)

i2d-imgui was updated recently. Do note that to use this package 
you’ll need a C++ compiler and CMake. Additionally we’ve chosen 
not to include any backends so you should copy the backends from 
imgui directly and translate them to D. Which should be mostly 
trivial to do.

Additionally my SDL-D package provides bindings to SDL3.


More information about the Digitalmars-d-learn mailing list