Get the latest tech news
Microui+fenster=Small GUI
Sometimes I just want to put pixels on a screen. I don’t want to think about SDL this or OpenGL that—I just want to draw my pixel buffer and be done.
It’s a tiny drop-in header-only C/C++ file that weighs no more than 400 LOC of pretty readable code. Fortunately, microui by rxi exists and handles the translation from GUI elements into a simple retargetable drawing bytecode. It’s inspired by the SDL renderer demo, but with a couple of added functions to abstract away keys and mouse buttons.
Or read this on Hacker News