Skip to content

Commit 4197ef7

Browse files
committed
Windows libraries and README
1 parent b813d49 commit 4197ef7

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

bin/README.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Folder contains libraries used by the binding.
2+
Provide 'java.library.path' VM option to a folder with one of those file (ex: -Djava.library.path=./some/folder).
3+
By default binding expects 'imgui-java' ('imgui-java64' for x64 arch) file name.
4+
You can change that by using 'imgui.library.name' VM option (ex: -Dimgui.library.name=custom-lib-name).
5+
6+
- imgui-java.dll << win32
7+
- imgui-java64.dll << win64
8+
- libimgui-java.so << linux32
9+
- libimgui-java.so << linux64

bin/imgui-java.dll

-331 Bytes
Binary file not shown.

bin/imgui-java64.dll

-339 Bytes
Binary file not shown.

imgui-binding/src/main/java/imgui/ImGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public final class ImGui {
88
private static final String LIB_NAME_PROP = "imgui.library.name";
9-
private static final String LIB_NAME_DEFAULT = "imgui-java";
9+
private static final String LIB_NAME_DEFAULT = System.getProperty("os.arch").contains("64") ? "imgui-java64" : "imgui-java";
1010

1111
private static final ImDrawData DRAW_DATA = new ImDrawData(100_000, 100_000, 1000);
1212
private static final ImGuiIO IMGUI_IO = new ImGuiIO();

0 commit comments

Comments
 (0)