igDragFloat4() private method

private igDragFloat4 ( string label, Vector4 &v, float v_speed, float v_min, float v_max, string display_format, float power ) : bool
label string
v Vector4
v_speed float
v_min float
v_max float
display_format string
power float
return bool
Exemplo n.º 1
0
        public static bool DragVector4(string label, ref Color value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
        {
            System.Numerics.Vector4 vec4 = value.ToNumericsVector4();
            bool result = ImGuiNative.igDragFloat4(label, ref vec4, dragSpeed, min, max, displayFormat, dragPower);

            value = new Color(vec4.X, vec4.Y, vec4.Z, vec4.W);
            return(result);
        }
Exemplo n.º 2
0
 public static bool DragVector4(string label, ref Vector4 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
 {
     return(ImGuiNative.igDragFloat4(label, ref value, dragSpeed, min, max, displayFormat, dragPower));
 }
Exemplo n.º 3
0
 public static bool DragImVec4(string label, ref ImVec4 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
 => ImGuiNative.igDragFloat4(label, ref value, dragSpeed, min, max, displayFormat, dragPower);