From b25b5d55add50da26ebe812d5743dfa8df76b91a Mon Sep 17 00:00:00 2001 From: SpaiR Date: Sat, 6 Jun 2020 21:51:11 +0300 Subject: [PATCH] Make `getID` to return int instead of long --- imgui-binding/src/main/java/imgui/ImGui.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/imgui-binding/src/main/java/imgui/ImGui.java b/imgui-binding/src/main/java/imgui/ImGui.java index 1ca8bb4..eca98bf 100644 --- a/imgui-binding/src/main/java/imgui/ImGui.java +++ b/imgui-binding/src/main/java/imgui/ImGui.java @@ -1284,15 +1284,21 @@ public final class ImGui { /** * Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself */ - public static native long getID(String strId); /* + public static native int getID(String strId); /* return ImGui::GetID(strId); */ - public static native long getID(String strIdBegin, String strIdEnd); /* + /** + * Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + */ + public static native int getID(String strIdBegin, String strIdEnd); /* return ImGui::GetID(strIdBegin, strIdEnd); */ - public static native long getID(long ptrId); /* + /** + * Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + */ + public static native int getID(long ptrId); /* return ImGui::GetID((void*)ptrId); */ @@ -4657,7 +4663,7 @@ public final class ImGui { // Color Utilities - public static native void colorConvertU32ToFloat4(long in, ImVec4 dstImVec4); /* + public static native void colorConvertU32ToFloat4(int in, ImVec4 dstImVec4); /* Jni::ImVec4Cpy(env, ImGui::ColorConvertU32ToFloat4(in), dstImVec4); */