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)

Nuklear works with D (ImportC) out of the box, you don't need any binding, that's what i'm using in my game



nk.c
```
// add other configs you need
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT
#define NK_IMPLEMENTATION
#include "nuklear.h"
```

app.d
```D
import nk;
```

Then the examples are 1:1, C/D is the same


Stick to simplicity, and get rewarded for it


  • Looking for a si... Danny Arends via Digitalmars-d-learn
    • Re: Looking... ryuukk_ via Digitalmars-d-learn
      • Re: Loo... Danny Arends via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Danny Arends via Digitalmars-d-learn
    • Re: Looking... ryuukk_ via Digitalmars-d-learn
    • Re: Looking... IchorDev via Digitalmars-d-learn

Reply via email to