rxi / microui

A tiny immediate-mode UI library
MIT License
3.29k stars 239 forks source link

NOT A BUG: Why not make this in Love2D? #21

Closed besnoi closed 4 years ago

besnoi commented 4 years ago

I know this shouldn't be in the issue but I had no means of communicating you so ...! In any case I am very impressed by this neat library of yours and I think you would do the love2d world a favour by porting this to work with love2d!! (for cross-platform compatibility it'd be awesome if you write in pure lua) Regards!

rxi commented 4 years ago

Thanks for the kind words! The library can be used with Love2d through LuaJIT's excellent FFI; it requires that you compile the library as a .dll, and run the C preprocessor on the microui.h file, using the output with the ffi.cdef function.

image https://i.imgur.com/MlFJTIr.mp4

Anyone else (yourself included) is welcome to try their hand at writing a pure-lua implementation.