OGRECave / ogre

scene-oriented, flexible 3D engine (C++, Python, C#, Java)
https://ogrecave.github.io/ogre/
MIT License
3.91k stars 966 forks source link

DearIMGUI: support for 32-bit indices #2772

Open ohlidalp opened 1 year ago

ohlidalp commented 1 year ago

Hello, I'd like to ask for a build option which would enable using 32-bit indices with DearIMGUI.

By default DearIMGUI uses 16-bit indices and uses assert() to check the buffer size. Enabling 32-bit indices is a 2-step process:

paroj commented 1 year ago

which asserts do you run into with 16bit indices?

you are likely using the ImDrawList API to get there? Can you show some code that triggers the assert?

also, would implementing ImDrawListFlags_AllowVtxOffset help? https://github.com/ocornut/imgui/issues/2591