You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JNI based binding for [Dear ImGui](https://github.com/ocornut/imgui) with no dependencies, ready to use pre-compiled binaries and a renderer for [LWJGL3](https://www.lwjgl.org/).
4
+
JNI based binding for [Dear ImGui](https://github.com/ocornut/imgui) with no dependencies, ready to use pre-compiled binaries and renderer for [LWJGL3](https://www.lwjgl.org/).
5
5
6
6
Please read **Binding Notice** to get more info about java-specific things of the API.<br>
7
7
See official [documentation](https://github.com/ocornut/imgui#usage) and [wiki](https://github.com/ocornut/imgui/wiki) to get more info about how to do things in Dear ImGui.
8
8
9
-
imgui-java provides all the data you need to render Dear ImGui. If, for some reason, you want to use your own backend renderer, see how things are done in [ImGuiImplGl3](https://github.com/SpaiR/imgui-java/blob/v1.76-0.9/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java).
9
+
Binding provides all the data you need to render Dear ImGui. If, for some reason, you want to use your own backend renderer, see how things are done in [ImGuiImplGl3](https://github.com/SpaiR/imgui-java/blob/v1.76-0.9/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java).
10
10
11
-
Binding has the next versioning semantic: `imguiVersion-bindingVersion`.<br>
11
+
Next versioning semantic is used: `imguiVersion-bindingVersion`.<br>
12
12
For example `1.74-0.1` means that imgui-java uses `1.74` version of Dear ImGui and binding itself has the version `0.1`.
13
13
14
14
*Some of the very specific features are still in a wip state.*
@@ -69,14 +69,14 @@ Alternatively you can download imgui-java binaries manually from the [release pa
69
69
**You are ready to use imgui-java binding!**
70
70
71
71
## Using FreeType
72
-
Dear ImGui by default uses an stb_strutype library to render a fonts atlas. It's possible to use FreeType instead to get better fonts quality. See an example in [ImGuiGlfwExample](https://github.com/spair/imgui-java/blob/v1.76-0.9/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java#L279). [Read more](https://github.com/ocornut/imgui/blob/v1.76/misc/freetype/README.md)
72
+
Dear ImGui by default uses an stb_strutype library to render a fonts atlas. It's possible to use FreeType instead to get better fonts quality. See an example in [ImGuiGlfwExample](https://github.com/spair/imgui-java/blob/v1.76-0.9/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java). [Read more](https://github.com/ocornut/imgui/blob/v1.76/misc/freetype/README.md)
73
73
74
74
## Binding Notice
75
75
* All Dear ImGui methods are available in `camelCase`, not in `PascalCase`.
76
76
* To **pass**`ImVec2`/`ImVec4` - provide two/four float numbers.
77
77
To **get**`ImVec2`/`ImVec4` - provide a destination object.
78
78
* To get an input/output to/from Dear ImGui - use primitive wrappers: `ImBool`, `ImInt` etc.
79
-
* Due to the Java and JNI restrictions we can't provide a fully fledged callbacks to the ImGui::InputText* methods.
79
+
* Due to the Java and JNI restrictions we can't provide a fully fledged callbacks to the `ImGui::InputText` methods.
80
80
To replace some of the features use an ImGuiInputTextData class.
81
81
* Read [javadoc](https://javadoc.io/doc/io.imgui.java/binding) and sources comments to get more info.
82
82
@@ -86,7 +86,7 @@ to build specific binaries you need. After everything is configured, run `gradle
86
86
That will build native libraries and place them in `imgui-binding/build/libsNative` folder.
87
87
88
88
## Credits
89
-
This binding is partly based on the work of [xpenatan](https://github.com/xpenatan) and his version [jDear-imgui](https://github.com/xpenatan/jDear-imgui).
89
+
Binding is partly based on the work of [xpenatan](https://github.com/xpenatan) and his version [jDear-imgui](https://github.com/xpenatan/jDear-imgui).
90
90
91
91
## License
92
92
See the LICENSE file for license rights and limitations (Apache-2.0).
0 commit comments