Skip to content

A simple helper library for use the Dear ImGui with jMonkeyEngine3. Currently supports LWJGL3 platform only.

License

Notifications You must be signed in to change notification settings

Tianscar/jme3-imgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JMonkeyEngine ImGui

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 library to your project (gradle)

  1. Add the Maven Central repository (if not exist) to your build file:
repositories {
    ...
    mavenCentral()
}
  1. Add the dependency:
dependencies {
    ...
    implementation 'com.tianscar.jme3:jme3-imgui:1.0.2'
}

Usage

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);
    }

}

JavaDoc
Examples

License

MIT (c) Karstian Lee

Dependencies

Apache-2.0 imgui-java
BSD-3-Clause jMonkeyEngine

Resources be used for test

Apache-2.0 Droid Sans Fallback

About

A simple helper library for use the Dear ImGui with jMonkeyEngine3. Currently supports LWJGL3 platform only.

Topics

Resources

License

Stars

Watchers

Forks

Languages