1
1
# imgui-java
2
- [ ![ CI Build] ( https://github.com/SpaiR/imgui-java/workflows/CI%20Build/badge.svg )] ( https://github.com/SpaiR/imgui-java/actions?query=workflow%3A%22CI+Build%22 )
3
- [ ![ binding javadoc] ( https://javadoc.io/badge2/io.imgui.java/imgui-java-binding/binding_javadoc.svg )] ( https://javadoc.io/doc/io.imgui.java/imgui-java-binding )
4
- [ ![ app javadoc] ( https://javadoc.io/badge2/io.imgui.java/imgui-java-app/app_javadoc.svg )] ( https://javadoc.io/doc/io.imgui.java/imgui-java-app )
2
+ [ ![ CI Build] ( https://github.com/SpaiR/imgui-java/workflows/CI%20Build/badge.svg )] ( https://github.com/SpaiR/imgui-java/actions?query=workflow%3A%22CI+Build%22 )
3
+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/io.github.spair/imgui-java-binding?logo=apache-maven )] ( https://search.maven.org/artifact/io.github.spair/imgui-java-binding )
4
+ [ ![ binding javadoc] ( https://javadoc.io/badge2/io.github.spair/imgui-java-binding/javadoc_binding.svg )] ( https://javadoc.io/doc/io.github.spair/imgui-java-binding )
5
+ [ ![ app javadoc] ( https://javadoc.io/badge2/io.github.spair/imgui-java-app/javadoc_app.svg )] ( https://javadoc.io/doc/io.github.spair/imgui-java-app )
5
6
6
7
JNI based binding for [ Dear ImGui] ( https://github.com/ocornut/imgui ) with no dependencies.<br >
7
8
Read official [ documentation] ( https://github.com/ocornut/imgui#usage ) and [ wiki] ( https://github.com/ocornut/imgui/wiki ) to see how to work with Dear ImGui.
@@ -69,7 +70,7 @@ public class Main extends Application {
69
70
}
70
71
}
71
72
```
72
- Read ` imgui.app.Application ` [ javadoc] ( https://javadoc.io/doc/io.imgui.java /imgui-java-app ) to understand how it works under the hood.
73
+ Read ` imgui.app.Application ` [ javadoc] ( https://javadoc.io/doc/io.github.spair /imgui-java-app ) to understand how it works under the hood.
73
74
74
75
#### Dependencies
75
76
@@ -78,11 +79,11 @@ Read `imgui.app.Application` [javadoc](https://javadoc.io/doc/io.imgui.java/imgu
78
79
79
80
```
80
81
repositories {
81
- jcenter ()
82
+ mavenCentral ()
82
83
}
83
84
84
85
dependencies {
85
- implementation "io.imgui.java :imgui-java-app:1.80-1.5.0"
86
+ implementation "io.github.spair :imgui-java-app:1.80-1.5.0"
86
87
}
87
88
```
88
89
</details >
@@ -91,16 +92,9 @@ dependencies {
91
92
<summary><b>Maven</b></summary>
92
93
93
94
```
94
- <repositories>
95
- <repository>
96
- <id>jcenter</id>
97
- <url>https://jcenter.bintray.com/</url>
98
- </repository>
99
- </repositories>
100
-
101
95
<dependencies>
102
96
<dependency>
103
- <groupId>io.imgui.java </groupId>
97
+ <groupId>io.github.spair </groupId>
104
98
<artifactId>imgui-java-app</artifactId>
105
99
<version>1.80-1.5.0</version>
106
100
</dependency>
@@ -129,7 +123,6 @@ Feel free to add other platforms: `imgui-java-natives-windows-x86`, `imgui-java-
129
123
130
124
```
131
125
repositories {
132
- jcenter()
133
126
mavenCentral()
134
127
}
135
128
@@ -146,10 +139,10 @@ dependencies {
146
139
implementation "org.lwjgl:lwjgl$it::natives-windows"
147
140
}
148
141
149
- implementation "io.imgui.java :imgui-java-binding:$imguiVersion"
150
- implementation "io.imgui.java :imgui-java-lwjgl3:$imguiVersion"
142
+ implementation "io.github.spair :imgui-java-binding:$imguiVersion"
143
+ implementation "io.github.spair :imgui-java-lwjgl3:$imguiVersion"
151
144
152
- implementation "io.imgui.java :imgui-java-natives-windows:$imguiVersion"
145
+ implementation "io.github.spair :imgui-java-natives-windows:$imguiVersion"
153
146
}
154
147
```
155
148
</details >
@@ -158,13 +151,6 @@ dependencies {
158
151
<summary><b>Maven</b></summary>
159
152
160
153
```
161
- <repositories>
162
- <repository>
163
- <id>jcenter</id>
164
- <url>https://jcenter.bintray.com/</url>
165
- </repository>
166
- </repositories>
167
-
168
154
<properties>
169
155
<lwjgl.version>3.2.3</lwjgl.version>
170
156
<imgui.java.version>1.80-1.5.0</imgui.java.version>
@@ -212,17 +198,17 @@ dependencies {
212
198
</dependency>
213
199
214
200
<dependency>
215
- <groupId>io.imgui.java </groupId>
201
+ <groupId>io.github.spair </groupId>
216
202
<artifactId>imgui-java-binding</artifactId>
217
203
<version>${imgui.java.version}</version>
218
204
</dependency>
219
205
<dependency>
220
- <groupId>io.imgui.java </groupId>
206
+ <groupId>io.github.spair </groupId>
221
207
<artifactId>imgui-java-lwjgl3</artifactId>
222
208
<version>${imgui.java.version}</version>
223
209
</dependency>
224
210
<dependency>
225
- <groupId>io.imgui.java </groupId>
211
+ <groupId>io.github.spair </groupId>
226
212
<artifactId>imgui-java-natives-windows</artifactId>
227
213
<version>${imgui.java.version}</version>
228
214
</dependency>
@@ -258,7 +244,7 @@ One important thing is how natives structs work. All of them have a public field
258
244
By changing the pointer it's possible to use the same Java instance to work with different native structs.<br >
259
245
Most of the time you can ignore this fact and just work with objects in a common way.
260
246
261
- Read [ javadoc] ( https://javadoc.io/doc/io.imgui.java /imgui-java-binding ) and source comments to get more info about how to do specific stuff.
247
+ Read [ javadoc] ( https://javadoc.io/doc/io.github.spair /imgui-java-binding ) and source comments to get more info about how to do specific stuff.
262
248
263
249
# How to Build Native Libraries
264
250
### Windows
0 commit comments