SpaiR / imgui-java

JNI based binding for Dear ImGui
MIT License
547 stars 90 forks source link

Missing Bindings: ImGui::ImageButton(ImGuiID id, ImTextureID texture_id, ...etc) #220

Open Displee opened 5 months ago

Displee commented 5 months ago

Version

1.86.11

What part of the binding has gaps?

Dear ImGui

What is missing?

Binding for ImGui::ImageButton(ImGuiID id, ImTextureID texture_id, ...etc) is missing. Currently we cannot pass ids to image buttons. We cannot create image buttons with the same texture id as the texture id is used as the imgui id of the button.

See: https://github.com/ocornut/imgui/blob/master/imgui_widgets.cpp#L1033

Displee commented 5 months ago

Current workaround: call ImGui.pushID(...) before the button and ImGui.popID() after the button.