kotlin-graphics/imgui

Working example with LibGDX

Closed this issue · 2 comments

Can we get a working example with LibGDX and LWJGL3 backend. I tried old example but imgui.impl.LwjglGL3 doesn't seems to exists anymore.

Looking at the code, you should just need to replace ImplGL3 with ImplBestGL, and instead of ImplGL3.INSTANCE, use new ImplBestGL().

Looking at the code, you should just need to replace ImplGL3 with ImplBestGL, and instead of ImplGL3.INSTANCE, use new ImplBestGL().

That and adding


    implementation "org.lwjgl:lwjgl"
    implementation "org.lwjgl:lwjgl-stb"
    runtimeOnly "org.lwjgl:lwjgl::natives-windows"
    runtimeOnly "org.lwjgl:lwjgl-stb::natives-windows"

to dependencies fixed it.

HelloImgui.kt.txt
build.gradle.txt