/gdx-imgui

Java imgui binding for libgdx

Primary LanguageJavaScriptApache License 2.0Apache-2.0

gdx-imgui

Deploy Libs

gdx-imgui is a java binding for C++ dear-imgui.
It's meant to be small and close 1-1 to C++.

Build

To build from source you need mingw-w64 and maven ant. Emscripten if you want to build javascript file.

When project is ready, run ./gradlew buildImGuiNatives and test the examples.

Gradle

Only SNAPSHOTS are currently available. Release will be ready when ImGui docking api goes to master.

gdxVersion = "1.11.0"
gdxImguiVersion = "1.0.0-SNAPSHOT"
imlayoutVersion = "1.0.0-SNAPSHOT"
// Add repository to Root gradle
repositories {
    mavenLocal()
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}

dependencies {
    implementation "com.badlogicgames.gdx:gdx-platform:$project.gdxVersion:natives-desktop"
    implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$project.gdxVersion"

    // Required
    implementation "com.github.xpenatan.gdx-imgui:core:$project.gdxImguiVersion"
    implementation "com.github.xpenatan.gdx-imgui:gdx:$project.gdxImguiVersion"

    // Required Platform Natives
    implementation "com.github.xpenatan.gdx-imgui:core-desktop:$project.gdxImguiVersion"
    //implementation "com.github.xpenatan.gdx-imgui:core-android:$project.gdxImguiVersion"
    //implementation "com.github.xpenatan.gdx-imgui:core-ios:$project.gdxImguiVersion"
    implementation "com.github.xpenatan.gdx-imgui:core-teavm:$project.gdxImguiVersion"

    // Optional
    implementation "com.github.xpenatan.gdx-imgui:lwjgl3:$project.gdxImguiVersion"

    // Optional - ImLayout extension
    implementation "com.github.xpenatan.gdx-imgui:imlayout:$project.imlayoutVersion"
    implementation "com.github.xpenatan.gdx-imgui:imlayout-desktop:$project.imlayoutVersion"

    // Optional
    implementation "com.github.xpenatan.gdx-imgui:gdx-frame-viewport:$project.gdxImguiVersion"
}