Skip to content

Commit 9634718

Browse files
committed
v1.75-0.7.1
1 parent 4df53e7 commit 9634718

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Please read **Binding notice** to get more info about specific of the binding AP
1212
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 ImGui.
1313

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

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

2727
```
28-
git clone --branch v1.75-0.7 https://github.com/SpaiR/imgui-java.git
28+
git clone --branch v1.75-0.7.1 https://github.com/SpaiR/imgui-java.git
2929
cd imgui-java
3030
gradlew :imgui-lwjgl3:startExample
3131
```
3232

33-
That's it! This will start an example app [ImGuiGlfwExample](https://github.com/SpaiR/imgui-java/blob/v1.75-0.7/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java)
34-
which relies on GLFW and LWJGL3. Feel free to modify [ImGuiGlfwExample#showUi](https://github.com/SpaiR/imgui-java/blob/v1.75-0.7/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java#L346)
33+
That's it! This will start an example app [ImGuiGlfwExample](https://github.com/SpaiR/imgui-java/blob/v1.75-0.7.1/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java)
34+
which relies on GLFW and LWJGL3. Feel free to modify [ImGuiGlfwExample#showUi](https://github.com/SpaiR/imgui-java/blob/v1.75-0.7.1/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java#L346)
3535
method to try different ImGui widgets in action.
3636

3737
**GIF with example:** https://imgur.com/a/E2rfuCR
@@ -57,7 +57,7 @@ method to try different ImGui widgets in action.
5757

5858
ext {
5959
lwjglVersion = '3.2.3'
60-
imguiVersion = '1.75-0.7'
60+
imguiVersion = '1.75-0.7.1'
6161
}
6262

6363
dependencies {
@@ -85,13 +85,13 @@ repositories {
8585
### Step 2
8686
Add binding dependency:
8787
```
88-
implementation 'io.imgui.java:binding:1.75-0.7'
88+
implementation 'io.imgui.java:binding:1.75-0.7.1'
8989
```
9090

9191
### Step 3
9292
If you want to use LWJGL3 renderer:
9393
```
94-
implementation 'io.imgui.java:lwjgl3:1.75-0.7'
94+
implementation 'io.imgui.java:lwjgl3:1.75-0.7.1'
9595
```
9696
**Disclaimer!**<br>
9797
LWJGL3 renderer is based on the `3.2.3` version of the [LWJGL](https://www.lwjgl.org/).
@@ -101,7 +101,7 @@ You can find how to do that [here](https://www.lwjgl.org/customize).
101101
### Step 4
102102
Add binary lib dependency:
103103
```
104-
runtimeOnly "io.imgui.java:$imguiNatives:1.75-0.7"
104+
runtimeOnly "io.imgui.java:$imguiNatives:1.75-0.7.1"
105105
```
106106
Where `imguiNatives` could be:
107107
- `natives-linux`
@@ -113,21 +113,22 @@ _(`x86` suffix is to get 32bit library)_
113113

114114
Or alternatively you can download binaries manually:<br>
115115
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`
116-
VM option with path to a folder where you placed downloaded file.
116+
VM option with path to a folder where you've placed downloaded file.
117117

118118
**You are ready to use imgui-java binding!**
119119

120120
#### Binding notice:
121121
* All ImGui methods are available in `camelCase`, not in `PascalCase`.
122-
* In places where in C++ you need to pass `ImVec2` or `ImVec4`, here you'll need to pass two or four float parameters respectively.
123-
* When you need to get an input/output to/from the Dear-ImGui use primitive wrappers: `ImBool`, `ImInt` etc.
122+
* In places where you need to **pass** `ImVec2` or `ImVec4` you'll need to pass two or four float parameters respectively.
123+
If you need to **get** `ImVec2` or `ImVec4`, you'll need to pass a destination object as method parameter.
124+
* When you need to get an input/output to/from Dear ImGui - use primitive wrappers: `ImBool`, `ImInt` etc.
124125
* Due to the Java and JNI restrictions we can't provide a fully fledged callbacks to the ImGui::InputText*() methods.
125126
Partly you could replace some of the features (like setting of the allowed chars to input) by using the ImGuiInputTextData class.
126127
Read [javadoc](https://javadoc.io/doc/io.imgui.java/binding) to get more info.
127128

128129
## How to build
129130
To build native libraries you should install `mingw-w64` and `ant`. Modify [GenerateLibs](https://github.com/SpaiR/imgui-java/blob/master/buildSrc/src/main/groovy/imgui/generate/GenerateLibs.groovy)
130-
to build specific binaries you need. After everything is configure run `gradlew :imgui-binding:generateLibs` task.
131+
to build specific binaries you need. After everything is configured, run `gradlew :imgui-binding:generateLibs`.
131132
This will build native libraries and place them in `~/imgui-binding/build/libsNative` folder.
132133

133134
## Credits

bin/imgui-java.dll

2 KB
Binary file not shown.

bin/imgui-java64.dll

1.5 KB
Binary file not shown.

bin/libimgui-java.so

0 Bytes
Binary file not shown.

bin/libimgui-java64.so

0 Bytes
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.75-0.7
1+
version=1.75-0.7.1

0 commit comments

Comments
 (0)