public static unsafe bool ColorEdit3(string label, ref ImVec3 color, bool showAlpha) { ImVec3 localColor = color; bool result = ImGuiNative.igColorEdit3(label, &localColor); if (result) { color = localColor; } return(result); }
public static unsafe bool ColorEdit3(string label, ref float r, ref float g, ref float b, bool showAlpha) { ImVec3 localColor = new ImVec3(r, g, b); bool result = ImGuiNative.igColorEdit3(label, &localColor); if (result) { r = localColor.X; g = localColor.Y; b = localColor.Z; } return(result); }
public static bool DragImVec3(string label, ref ImVec3 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f) { return(ImGuiNative.igDragFloat3(label, ref value, dragSpeed, min, max, displayFormat, dragPower)); }
public static bool SliderImVec3(string label, ref ImVec3 value, float min, float max, string displayText, float power) { return(ImGuiNative.igSliderFloat3(label, ref value, min, max, displayText, power)); }