haskell-game / dear-imgui.hs

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

added flag_ImDrawIdx #151

Closed Drezil closed 2 years ago

Drezil commented 2 years ago

Exposed the "#define ImDrawIdx unsigned int" from the imconfig.h for external configuration.

It is needed when you want to draw "more" vertices in an object (as i need with the implot-extension) without resorting to (inefficient) hacks with offsets etc. for the expense of a bit of memory-bloat in the indexes.

Similar tradeoffs to the WCHAR32-flag already present of using 32 instead of 16 bits.