Skip to content

Commit 8a298fe

Browse files
committed
v1.78-1.0
1 parent 2c66c8d commit 8a298fe

File tree

7 files changed

+33
-26
lines changed

7 files changed

+33
-26
lines changed

README.md

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ JNI based binding for [Dear ImGui](https://github.com/ocornut/imgui) with no dep
66
Please read **Binding Notice** to get more info about java-specific things of the API.<br>
77
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.
88

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 [ImGuiImplGl3](https://github.com/SpaiR/imgui-java/blob/v1.77-0.17.2/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java) for reference.
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 [ImGuiImplGl3](https://github.com/SpaiR/imgui-java/blob/v1.78-1.0/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java) for reference.
1010

1111
Versioning semantic of the binding: `imguiVersion-bindingVersion`.<br>
1212
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`.
@@ -21,12 +21,12 @@ _Make sure you have installed Java 8 or higher._
2121
You can try Dear ImGui with Java by yourself in a three simple steps:
2222

2323
```
24-
git clone --branch v1.77-0.17.2 https://github.com/SpaiR/imgui-java.git
24+
git clone --branch v1.78-1.0 https://github.com/SpaiR/imgui-java.git
2525
cd imgui-java
2626
gradlew :imgui-lwjgl3:startExample
2727
```
2828

29-
That's all! You will start an example app [ImGuiGlfwExample](https://github.com/SpaiR/imgui-java/blob/v1.77-0.17.2/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java). Feel free to modify [ExampleUi](https://github.com/SpaiR/imgui-java/blob/v1.77-0.17.2/imgui-lwjgl3/src/test/java/ExampleUi.java) class to try different Dear ImGui widgets in action.
29+
That's all! You will start an example app [ImGuiGlfwExample](https://github.com/SpaiR/imgui-java/blob/v1.78-1.0/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java). Feel free to modify [ExampleUi](https://github.com/SpaiR/imgui-java/blob/v1.78-1.0/imgui-lwjgl3/src/test/java/ExampleUi.java) class to try different Dear ImGui widgets in action.
3030

3131
![imgui-java demo](https://i.imgur.com/ljAhD7a.gif)
3232

@@ -43,31 +43,34 @@ repositories {
4343
4444
ext {
4545
lwjglVersion = '3.2.3'
46-
imguiVersion = '1.77-0.17.2'
46+
imguiVersion = '1.78-1.0'
4747
}
4848
4949
switch (OperatingSystem.current()) {
5050
case OperatingSystem.LINUX:
51-
project.ext.natives = "natives-linux"
51+
project.ext.imguiNatives = "imgui-java-natives-linux"
52+
project.ext.lwjglNatives = "natives-linux"
5253
break
5354
case OperatingSystem.MAC_OS:
54-
project.ext.natives = "natives-macos"
55+
project.ext.imguiNatives = "imgui-java-natives-macos"
56+
project.ext.lwjglNatives = "natives-macos"
5557
break
5658
case OperatingSystem.WINDOWS:
57-
project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
59+
project.ext.imguiNatives = System.getProperty("os.arch").contains("64") ? "imgui-java-natives-windows" : "imgui-java-natives-windows-x86"
60+
project.ext.lwjglNatives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
5861
break
5962
}
6063
6164
dependencies {
62-
implementation "io.imgui.java:binding:$imguiVersion"
63-
implementation "io.imgui.java:lwjgl3:$imguiVersion"
64-
runtimeOnly "io.imgui.java:$natives:$imguiVersion"
65+
implementation "io.imgui.java:imgui-java-binding:$imguiVersion"
66+
implementation "io.imgui.java:imgui-java-lwjgl3:$imguiVersion"
67+
runtimeOnly "io.imgui.java:$imguiNatives:$imguiVersion"
6568
6669
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
6770
6871
['', '-opengl', '-glfw'].each {
6972
implementation "org.lwjgl:lwjgl$it:$lwjglVersion"
70-
runtimeOnly "org.lwjgl:lwjgl$it::$natives"
73+
runtimeOnly "org.lwjgl:lwjgl$it::$lwjglNatives"
7174
}
7275
}
7376
```
@@ -87,58 +90,62 @@ dependencies {
8790
8891
<properties>
8992
<lwjgl.version>3.2.3</lwjgl.version>
90-
<imgui.java.version>1.77-0.17.2</imgui.java.version>
93+
<imgui.java.version>1.78-1.0</imgui.java.version>
9194
</properties>
9295
9396
<!-- Resolve OS version for native libraries -->
9497
<!-- imgui-java uses the same naming convention as LWJGL3 -->
9598
<profiles>
9699
<profile>
97-
<id>lwjgl-natives-linux-amd64</id>
100+
<id>natives-linux-amd64</id>
98101
<activation>
99102
<os>
100103
<family>unix</family>
101104
<arch>amd64</arch>
102105
</os>
103106
</activation>
104107
<properties>
105-
<natives>natives-linux</natives>
108+
<imguiNatives>imgui-java-natives-linux</imguiNatives>
109+
<lwjglNatives>natives-linux</lwjglNatives>
106110
</properties>
107111
</profile>
108112
<profile>
109-
<id>lwjgl-natives-macos-amd64</id>
113+
<id>natives-macos-amd64</id>
110114
<activation>
111115
<os>
112116
<family>mac</family>
113117
<arch>amd64</arch>
114118
</os>
115119
</activation>
116120
<properties>
117-
<natives>natives-macos</lwjgl.natives>
121+
<imguiNatives>imgui-java-natives-macos</lwjgl.imguiNatives>
122+
<lwjglNatives>natives-macos</lwjgl.lwjglNatives>
118123
</properties>
119124
</profile>
120125
<profile>
121-
<id>lwjgl-natives-windows-amd64</id>
126+
<id>natives-windows-amd64</id>
122127
<activation>
123128
<os>
124129
<family>windows</family>
125130
<arch>amd64</arch>
126131
</os>
127132
</activation>
128133
<properties>
129-
<natives>natives-windows</natives>
134+
<imguiNatives>imgui-java-natives-windows</imguiNatives>
135+
<lwjglNatives>natives-windows</lwjglNatives>
130136
</properties>
131137
</profile>
132138
<profile>
133-
<id>lwjgl-natives-windows-x86</id>
139+
<id>natives-windows-x86</id>
134140
<activation>
135141
<os>
136142
<family>windows</family>
137143
<arch>x86</arch>
138144
</os>
139145
</activation>
140146
<properties>
141-
<natives>natives-windows-x86</natives>
147+
<imguiNatives>imgui-java-natives-windows-x86</imguiNatives>
148+
<lwjglNatives>natives-windows-x86</lwjglNatives>
142149
</properties>
143150
</profile>
144151
</profiles>
@@ -169,7 +176,7 @@ dependencies {
169176
</dependency>
170177
<dependency>
171178
<groupId>io.imgui.java</groupId>
172-
<artifactId>${natives}</artifactId>
179+
<artifactId>${imguiNatives}</artifactId>
173180
<version>${imgui.java.version}</version>
174181
</dependency>
175182
@@ -189,17 +196,17 @@ dependencies {
189196
<dependency>
190197
<groupId>org.lwjgl</groupId>
191198
<artifactId>lwjgl</artifactId>
192-
<classifier>${natives}</classifier>
199+
<classifier>${lwjglNatives}</classifier>
193200
</dependency>
194201
<dependency>
195202
<groupId>org.lwjgl</groupId>
196203
<artifactId>lwjgl-glfw</artifactId>
197-
<classifier>${natives}</classifier>
204+
<classifier>${lwjglNatives}</classifier>
198205
</dependency>
199206
<dependency>
200207
<groupId>org.lwjgl</groupId>
201208
<artifactId>lwjgl-opengl</artifactId>
202-
<classifier>${natives}</classifier>
209+
<classifier>${lwjglNatives}</classifier>
203210
</dependency>
204211
</dependencies>
205212
```
@@ -234,7 +241,7 @@ Take a note that multi-viewports api is **VERY** complex to implement. It's high
234241
Otherwise, if you're using your own backed implementation, there are no guarantees it will work.
235242

236243
## Using FreeType
237-
Dear ImGui by default uses a 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.77-0.17.2/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java). [Read more](https://github.com/ocornut/imgui/blob/v1.76/misc/freetype/README.md)
244+
Dear ImGui by default uses a 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.78-1.0/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java). [Read more](https://github.com/ocornut/imgui/blob/v1.78/misc/freetype/README.md)
238245

239246
## Binding Notice
240247
* All Dear ImGui methods are available in `camelCase`, not in `PascalCase`.

bin/imgui-java.dll

20 KB
Binary file not shown.

bin/imgui-java64.dll

20.5 KB
Binary file not shown.

bin/libimgui-java.so

24 KB
Binary file not shown.

bin/libimgui-java64.dylib

50.6 KB
Binary file not shown.

bin/libimgui-java64.so

24 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.77-0.17.2
1+
version=1.78-1.0

0 commit comments

Comments
 (0)