Skip to content

dd86k/ddui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddui, Immediate Mode UI

demo

ddui is a BetterC-compatible Immediate Mode User Interface.

This is a D port of rxi/microui after being angry at my Imgui/Nuklear bindings not working. I'd like to personally thank rxi for making microui and Mike Parker for bindbc-opengl and bindbc-sdl.

Like the original, the library does not do any rendering of its own, but contains commands to draw text, shapes, and icons originating from the library that needs to be implemented in your application in order to work.

It does not aim to be ABI or API compatible.

Features

  • BetterC compatibility.
  • Support for D strings in non-betterC settings.
  • Index-based command stack buffer.
  • Demo: Fixed host window resizing (clipping).

Roadmap

  • Embedded documentation.
  • Textbox input navigation.

Examples

There are two examples: demo (multi-embedded windows) and demo_app (full window).

Both use SDL2 dynamic packages, which you will need on your system. On Windows, place sdl2.dll in the same directory.

Both have gl11 (OpenGL 1.1, default) and gl33 (OpenGL 3.3) configurations.

Running the demo example: dub :demo -c gl33 --compiler=ldc2

Both demos have these options:

  • --debug: Show debug information on screen (demo only)
  • --vsync: Force vsync on (this is the default)
  • --no-vsync: Force vsync off
  • --adaptive-vsync: Use adaptive vsync

About

🪟 Immediate-mode UI

Resources

License

Stars

Watchers

Forks

Contributors

Languages