Skip to content

skoppe/spasm-imgui

Repository files navigation

Wasm Imgui for D (experimental)

This repo contains a WebAssembly build of imgui (C++) and cimgui (C bindings), together with a webgl backend written in D. See live demo.

The WebAssembly build of imgui and cimgui is done with clang and WASI as libc. This is linked with a D program that uses web bindings from spasm to create a WebGL backend and render it to a canvas.

The cimgui D bindings are taken from derelict dimgui and are partially upgraded to 1.71

Experimental

I have only implemented the Bare Minimum (tm), some feature in the demo window don't work (e.g. filesystem, keyboard, right-click, etc.)

Building yourself

Although imgui, cimgui and WASI are already precompiled (WebAssembly is portable), you can remove the dist and the sysroot folder and run make. Make sure to install the following dependencies first: clang llvm ldc dub lld grep diffutils make.

About

D application with imgui running in the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published