eskalon / pancake

A simple framework for libGDX games.
Other
8 stars 0 forks source link

Add ImGui #8

Open Sarroxxie opened 3 years ago

Sarroxxie commented 3 years ago

Maybe add ImGui for Debugging purposes :)

crykn commented 3 years ago

If you want ImGui for making simple UIs in the g3d tests, then sure, feel free to do so. Adding one of the following JVM ports should do the trick: kotlin-graphics/imgui, ice1000/jimgui, SpaiR/imgui-java. See here for a simple guide.

However, I'm against adding it as a general dependency (for non-test parts). Depending on which port is used, ImGui's size is quite considerable, it is most certainly not compatible with GWT (--> Kotlin) and the capabilities of libgdx' Scene2D.UI are at least somewhat comparable in regards to quickly prototyping GUIs.

crykn commented 11 months ago

For now, there's a quick prototype of ImGui support over at: https://github.com/eskalon/ProjektGG/blob/03573d06c607a8c15256f50e38715e7c682d09f8/game/src/main/java/de/gg/game/misc/ImGuiRenderer.java