A simple helper library for use the Dear ImGui with jMonkeyEngine3. Currently supports LWJGL3 platform only.
Supported jMonkeyEngine version: v3.6.0 or later.
- Add the Maven Central repository (if not exist) to your build file:
repositories {
...
mavenCentral()
}
- Add the dependency:
dependencies {
...
implementation 'com.tianscar.jme3:jme3-imgui:1.0.2'
}
public class Usage extends SimpleApplication {
@Override
public void simpleInitApp() {
// Initialize the ImGui
JmeImGui.init(getContext());
}
@Override
public void simpleRender(RenderManager rm) {
// Start the ImGui frame
JmeImGui.startFrame();
// ----------- ImGui logic here ---------------
if (!JmeImGui.isDisposed()) {
// Draw widgets here
}
// --------------------------------------------
// End the ImGui frame
JmeImGui.endFrame();
}
@Override
public void requestClose(boolean esc) {
// Dispose the ImGui
JmeImGui.dispose();
super.requestClose(esc);
}
}
MIT (c) Karstian Lee
Apache-2.0 imgui-java
BSD-3-Clause jMonkeyEngine
Apache-2.0 Droid Sans Fallback