haskell-game / dear-imgui.hs

Haskell bindings to Dear ImGui, an immediate mode GUI toolkit
BSD 3-Clause "New" or "Revised" License
141 stars 31 forks source link

Move to cimgui #146

Open dpwiz opened 2 years ago

dpwiz commented 2 years ago

https://github.com/cimgui/cimgui

This may, or may not, alleviate our extension pains.

Drezil commented 2 years ago

are you thinking of replacing the Raw.hs with c2hs? Or using the generated .json-output (or similar) to generate the Raw.hs-file?

dpwiz commented 2 years ago

cimgui has the JSON dumps of its API.

I just had a look at them, and they have the original C++ stuff too :thinking:

Drezil commented 2 years ago

That's what i meant after i looked at them. I think their route is: Parse C++ into json/lua, then use that to create the C-bindings.

2 ways to use this: throw c2hs onto the generated C-Code or use their json to generate Haskell-code with a homebrew-generator & more control.

dpwiz commented 1 year ago

A new promising alternative: https://github.com/dearimgui/dear_bindings#differences-with-cimgui