v1.74-0.4
This commit is contained in:
1 parent
c259aaa8b6
commit
0ef308d2a1
7 files changed
+41
-16
No files matched your search
@@ -14,7 +14,7 @@ Despite this fact, see official [documentation](https://github.com/ocornut/imgui
|
|||||||
to get more info about how to do things in ImGui.
|
to get more info about how to do things in ImGui.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
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).
|
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).
|
||||||
|
|
||||||
Binding has the next version naming: `imguiVersion-bindingVersion`.<br>
|
Binding has the next version naming: `imguiVersion-bindingVersion`.<br>
|
||||||
For example `1.74-0.1` means that binding uses `1.74` version of **ImGui** and binding itself has version `0.1`.
|
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._
|
|||||||
You can try this binding by yourself in a three simple steps:
|
You can try this binding by yourself in a three simple steps:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone --branch v1.74-0.3.2 https://github.com/SpaiR/imgui-java.git
|
git clone --branch v1.74-0.4 https://github.com/SpaiR/imgui-java.git
|
||||||
cd imgui-java
|
cd imgui-java
|
||||||
gradlew :imgui-lwjgl3:startExample
|
gradlew :imgui-lwjgl3:startExample
|
||||||
```
|
```
|
||||||
|
|
||||||
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)
|
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)
|
||||||
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)
|
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)
|
||||||
method to try different ImGui widgets in action.
|
method to try different ImGui widgets in action.
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@@ -53,18 +53,13 @@ repositories {
|
|||||||
#### Step 2
|
#### Step 2
|
||||||
Add binding dependency:
|
Add binding dependency:
|
||||||
```
|
```
|
||||||
dependecies {
|
implementation 'io.imgui.java:binding:1.74-0.4'
|
||||||
implementation 'io.imgui.java:binding:1.74-0.3.2'
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Step 3 (optional, but recommended)
|
#### Step 3
|
||||||
If you want to use LWJGL3 renderer:
|
If you want to use LWJGL3 renderer:
|
||||||
```
|
```
|
||||||
dependecies {
|
implementation 'io.imgui.java:lwjgl3:1.74-0.4'
|
||||||
implementation 'io.imgui.java:binding:1.74-0.3.2'
|
|
||||||
implementation 'io.imgui.java:lwjgl3:1.74-0.3.2'
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
**Disclaimer!**<br>
|
**Disclaimer!**<br>
|
||||||
LWJGL3 renderer is based on the `3.2.3` version of the [LWJGL](https://www.lwjgl.org/).
|
LWJGL3 renderer is based on the `3.2.3` version of the [LWJGL](https://www.lwjgl.org/).
|
||||||
@@ -72,8 +67,37 @@ You'll need to add additional dependencies to it. Specifically `lwjgl` itself, `
|
|||||||
You can find how to do it [here](https://www.lwjgl.org/customize).
|
You can find how to do it [here](https://www.lwjgl.org/customize).
|
||||||
|
|
||||||
#### Step 4
|
#### Step 4
|
||||||
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
|
Add binary lib dependency:
|
||||||
where you placed the downloaded file.
|
```
|
||||||
|
runtimeOnly "io.imgui.java:$imguiNatives:1.74-0.4"
|
||||||
|
```
|
||||||
|
Where `imguiNatives` could be:
|
||||||
|
- `natives-linux`
|
||||||
|
- `natives-linux-x86`
|
||||||
|
- `natives-windows`
|
||||||
|
- `natives-windows-x86`
|
||||||
|
|
||||||
|
_(`x86` suffix is to get 32bit library)_
|
||||||
|
|
||||||
|
Or alternatively you can download binaries manually:<br>
|
||||||
|
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`
|
||||||
|
VM option with path to a folder where you placed downloaded file.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Result build.gradle could look like this</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation 'io.imgui.java:binding:1.74-0.4'
|
||||||
|
implementation 'io.imgui.java:lwjgl3:1.74-0.4'
|
||||||
|
runtimeOnly "io.imgui.java:natives-windows:1.74-0.4"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
**You are ready to use imgui-java binding!**
|
**You are ready to use imgui-java binding!**
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
Folder contains libraries used by the binding.
|
Folder contains libraries used by the binding.
|
||||||
Provide 'java.library.path' VM option to a folder with one of those file (ex: -Djava.library.path=./some/folder).
|
Provide 'imgui.library.path' VM option to a folder with one of those file (ex: -Dimgui.library.path=./some/folder).
|
||||||
|
The same way you can use 'java.library.path' option as well.
|
||||||
By default binding expects 'imgui-java' ('imgui-java64' for x64 arch) file name.
|
By default binding expects 'imgui-java' ('imgui-java64' for x64 arch) file name.
|
||||||
You can change that by using 'imgui.library.name' VM option (ex: -Dimgui.library.name=custom-lib-name).
|
You can change that by using 'imgui.library.name' VM option (ex: -Dimgui.library.name=custom-lib-name).
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
|||||||
version=1.74-0.3.2
|
version=1.74-0.4
|
||||||
Reference in new issue
Block a user