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
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)
36
+
which relies on 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)
37
37
method to try different ImGui widgets in action.
38
38
39
39
<details>
@@ -42,31 +42,31 @@ method to try different ImGui widgets in action.
42
42
</details>
43
43
44
44
## How to use
45
-
####Step 1
45
+
### Step 1
46
46
Add jcenter repository:
47
47
```
48
48
repositories {
49
49
jcenter()
50
50
}
51
51
```
52
52
53
-
####Step 2
53
+
### Step 2
54
54
Add binding dependency:
55
55
```
56
56
implementation 'io.imgui.java:binding:1.74-0.4'
57
57
```
58
58
59
-
####Step 3
59
+
### Step 3
60
60
If you want to use LWJGL3 renderer:
61
61
```
62
62
implementation 'io.imgui.java:lwjgl3:1.74-0.4'
63
63
```
64
64
**Disclaimer!**<br>
65
65
LWJGL3 renderer is based on the `3.2.3` version of the [LWJGL](https://www.lwjgl.org/).
66
66
You'll need to add additional dependencies to it. Specifically `lwjgl` itself, `glfw` and `opengl` modules.
67
-
You can find how to do it[here](https://www.lwjgl.org/customize).
67
+
You can find how to do that[here](https://www.lwjgl.org/customize).
@@ -107,11 +105,11 @@ VM option with path to a folder where you placed downloaded file.
107
105
* When you need to get an input/output to/from the Dear-ImGui use primitive wrappers: `ImBool`, `ImInt` etc.
108
106
* Due to the Java and JNI restrictions we can't provide a fully fledged callbacks to the ImGui::InputText*() methods.
109
107
Partly you could replace some of the features (like setting of the allowed chars to input) by using the ImGuiInputTextData class.
110
-
Read javadoc to get more info.
108
+
Read [javadoc](https://javadoc.io/doc/io.imgui.java/binding) to get more info.
111
109
112
110
## How to build
113
-
To build native libraries you should install mingw-w64. Then modify[GenerateLibs](https://github.com/SpaiR/imgui-java/blob/master/buildSrc/src/main/groovy/imgui/generate/GenerateLibs.groovy)
114
-
to build specific binaries you need. After you configured everything run `gradlew :imgui-binding:generateLibs` task.
111
+
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)
112
+
to build specific binaries you need. After everything is configure run `gradlew :imgui-binding:generateLibs` task.
115
113
This will build native libraries and place them in `~/imgui-binding/build/libsNative` folder.
0 commit comments