Skip to content

Commit 0ef308d

Browse files
committed
v1.74-0.4
1 parent c259aaa commit 0ef308d

File tree

7 files changed

+41
-16
lines changed

7 files changed

+41
-16
lines changed

README.md

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Despite this fact, see official [documentation](https://github.com/ocornut/imgui
1414
to get more info about how to do things in ImGui.
1515

1616
Binding doesn't force you to use backend renderer which is introduced here. Feel free to use your own renderer engine if you need so.
17-
See how things are done in [ImGuiImplGl3](https://github.com/SpaiR/imgui-java/blob/v1.74-0.3.2/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java).
17+
See how things are done in [ImGuiImplGl3](https://github.com/SpaiR/imgui-java/blob/v1.74-0.4/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java).
1818

1919
Binding has the next version naming: `imguiVersion-bindingVersion`.<br>
2020
For example `1.74-0.1` means that binding uses `1.74` version of **ImGui** and binding itself has version `0.1`.
@@ -27,13 +27,13 @@ _Make sure you have installed Java 8 or higher._
2727
You can try this binding by yourself in a three simple steps:
2828

2929
```
30-
git clone --branch v1.74-0.3.2 https://github.com/SpaiR/imgui-java.git
30+
git clone --branch v1.74-0.4 https://github.com/SpaiR/imgui-java.git
3131
cd imgui-java
3232
gradlew :imgui-lwjgl3:startExample
3333
```
3434

35-
That's it! This will start an example app [ImGuiGlfwExample](https://github.com/SpaiR/imgui-java/blob/v1.74-0.3.2/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java)
36-
which relies on the GLFW and LWJGL3. Feel free to modify [ImGuiGlfwExample#showUi](https://github.com/SpaiR/imgui-java/blob/v1.74-0.3.2/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java#L288)
35+
That's it! This will start an example app [ImGuiGlfwExample](https://github.com/SpaiR/imgui-java/blob/v1.74-0.4/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java)
36+
which relies on the GLFW and LWJGL3. Feel free to modify [ImGuiGlfwExample#showUi](https://github.com/SpaiR/imgui-java/blob/v1.74-0.4/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java#L288)
3737
method to try different ImGui widgets in action.
3838

3939
<details>
@@ -53,27 +53,51 @@ repositories {
5353
#### Step 2
5454
Add binding dependency:
5555
```
56-
dependecies {
57-
implementation 'io.imgui.java:binding:1.74-0.3.2'
58-
}
56+
implementation 'io.imgui.java:binding:1.74-0.4'
5957
```
6058

61-
#### Step 3 (optional, but recommended)
59+
#### Step 3
6260
If you want to use LWJGL3 renderer:
6361
```
64-
dependecies {
65-
implementation 'io.imgui.java:binding:1.74-0.3.2'
66-
implementation 'io.imgui.java:lwjgl3:1.74-0.3.2'
67-
}
62+
implementation 'io.imgui.java:lwjgl3:1.74-0.4'
6863
```
6964
**Disclaimer!**<br>
7065
LWJGL3 renderer is based on the `3.2.3` version of the [LWJGL](https://www.lwjgl.org/).
7166
You'll need to add additional dependencies to it. Specifically `lwjgl` itself, `glfw` and `opengl` modules.
7267
You can find how to do it [here](https://www.lwjgl.org/customize).
7368

7469
#### Step 4
75-
Go to the `/bin` folder and pick a native library for your OS. Then you'll need to provide `java.library.path` VM option with folder
76-
where you placed the downloaded file.
70+
Add binary lib dependency:
71+
```
72+
runtimeOnly "io.imgui.java:$imguiNatives:1.74-0.4"
73+
```
74+
Where `imguiNatives` could be:
75+
- `natives-linux`
76+
- `natives-linux-x86`
77+
- `natives-windows`
78+
- `natives-windows-x86`
79+
80+
_(`x86` suffix is to get 32bit library)_
81+
82+
Or alternatively you can download binaries manually:<br>
83+
Go to the `/bin` folder and pick a native library for your OS. Then you'll need to provide `imgui.library.path` or `java.library.path`
84+
VM option with path to a folder where you placed downloaded file.
85+
86+
<details>
87+
<summary>Result build.gradle could look like this</summary>
88+
89+
```
90+
repositories {
91+
jcenter()
92+
}
93+
94+
dependencies {
95+
implementation 'io.imgui.java:binding:1.74-0.4'
96+
implementation 'io.imgui.java:lwjgl3:1.74-0.4'
97+
runtimeOnly "io.imgui.java:natives-windows:1.74-0.4"
98+
}
99+
```
100+
</details>
77101

78102
**You are ready to use imgui-java binding!**
79103

bin/README.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Folder contains libraries used by the binding.
2-
Provide 'java.library.path' VM option to a folder with one of those file (ex: -Djava.library.path=./some/folder).
2+
Provide 'imgui.library.path' VM option to a folder with one of those file (ex: -Dimgui.library.path=./some/folder).
3+
The same way you can use 'java.library.path' option as well.
34
By default binding expects 'imgui-java' ('imgui-java64' for x64 arch) file name.
45
You can change that by using 'imgui.library.name' VM option (ex: -Dimgui.library.name=custom-lib-name).
56

bin/imgui-java.dll

-23 KB
Binary file not shown.

bin/imgui-java64.dll

-26 KB
Binary file not shown.

bin/libimgui-java.so

16.2 KB
Binary file not shown.

bin/libimgui-java64.so

20.3 KB
Binary file not shown.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.74-0.3.2
1+
version=1.74-0.4

0 commit comments

Comments
 (0)