João Costa @JD557@blog.joaocosta.eu Follow

Portuguese software engineer at Kevel.

My instance is running on a small server so please #nobot

Web

https://www.joaocosta.eu/

GitHub

https://github.com/JD557

Twitter

https://twitter.com/JD557

Itch.io

https://jd557.itch.io

  • Notes
  • Articles 6
  • Followers 41
  • Following 57
João Costa's avatar
João Costa
@JD557@blog.joaocosta.eu

Today I was playing a bit with immediate mode GUIs, trying to port the code from https://solhsa.com/imgui/.

This actually worked pretty well and, while still pretty imperative, I was able to hide some of the ugly mutable code with Scala 3 context functions.

For fun, I also made sure that the code received a structure with inputs and returned a sequence of operations that need to be interpreted. That way it is completely backend agnostic (like microui).

Maybe I'll clean it up a bit (at least to add text support) and open source it. 🙂

GitHub - rxi/microui: A tiny immediate-mode UI library GitHub
Screenshot of the GUI with some code on the side
GIF
  • permalink
  • 1 year, 11 months ago
  • 1 reply
João Costa's avatar
João Costa
@JD557@blog.joaocosta.eu

in reply to this object

Still a lot of smoke and mirrors, but this is starting to take shape.

Looks like Twotm8-native isn't staying native-only for long 😜

GIF
  • permalink
  • interact from your instance
  • 1 year, 11 months ago
Powered by microblog.pub 2.0.0+dev (source code) and the ActivityPub protocol. Admin.