Skip to content

Commit

Permalink
fix: ambiguous call for ImGui::GetColorU32
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaiR committed Aug 8, 2024
1 parent 991673b commit 7a3167c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions imgui-binding/src/generated/java/imgui/ImGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -2102,23 +2102,23 @@ public static void getFontTexUvWhitePixel(final ImVec2 dst) {
/**
* Retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList.
*/
public static int getColorU32(final int imGuiColIdx) {
return nGetColorU32(imGuiColIdx);
public static int getColorU32(final int idx) {
return nGetColorU32(idx);
}

/**
* Retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList.
*/
public static int getColorU32(final int imGuiColIdx, final float alphaMul) {
return nGetColorU32(imGuiColIdx, alphaMul);
public static int getColorU32(final int idx, final float alphaMul) {
return nGetColorU32(idx, alphaMul);
}

private static native int nGetColorU32(int imGuiColIdx); /*
return ImGui::GetColorU32(imGuiColIdx);
private static native int nGetColorU32(int idx); /*
return ImGui::GetColorU32(static_cast<ImGuiCol>(idx));
*/

private static native int nGetColorU32(int imGuiColIdx, float alphaMul); /*
return ImGui::GetColorU32(imGuiColIdx, alphaMul);
private static native int nGetColorU32(int idx, float alphaMul); /*
return ImGui::GetColorU32(static_cast<ImGuiCol>(idx), alphaMul);
*/

/**
Expand Down Expand Up @@ -2149,7 +2149,7 @@ public static int getColorU32i(final int col) {
}

private static native int nGetColorU32i(int col); /*
return ImGui::GetColorU32((ImU32)col);
return ImGui::GetColorU32(static_cast<ImU32>(col));
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions imgui-binding/src/main/java/imgui/ImGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ public static void init() {
* Retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList.
*/
@BindingMethod
public static native int GetColorU32(int imGuiColIdx, @OptArg float alphaMul);
public static native int GetColorU32(@ArgValue(staticCast = "ImGuiCol") int idx, @OptArg float alphaMul);

/**
* Retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList.
Expand All @@ -740,7 +740,7 @@ public static void init() {
* Retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList.
*/
@BindingMethod(callName = "GetColorU32")
public static native int GetColorU32i(@ArgValue(callPrefix = "(ImU32)") int col);
public static native int GetColorU32i(@ArgValue(staticCast = "ImU32") int col);

/**
* Retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(),
Expand Down

0 comments on commit 7a3167c

Please sign in to comment.