ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.87k stars 304 forks source link

How to use DragInt2 ? #400

Closed cholushkin closed 1 year ago

cholushkin commented 1 year ago

In ImGuiNative.gen.cs there is: public static extern byte igDragInt2(byte label, int v, float v_speed, int v_min, int v_max, byte* format, ImGuiSliderFlags flags); which expects pointer to values, for igDragInt2 it expects 2 values

On C# side In ImGui.gen.cs there is public static bool DragInt2(string label, ref int v); which expects ref to 1 integer value

What is a right way to pass array of 2 integers to DragInt2 ?

zaafar commented 1 year ago

duplicate of https://github.com/ImGuiNET/ImGui.NET/issues/181