igSliderFloat4() private method

private igSliderFloat4 ( string label, Vector4 &v, float v_min, float v_max, string display_format, float power ) : bool
label string
v Vector4
v_min float
v_max float
display_format string
power float
return bool
Beispiel #1
0
        public static bool SliderVector4(string label, ref Color value, float min, float max, string displayText, float power)
        {
            System.Numerics.Vector4 vec4 = value.ToNumericsVector4();
            bool result = ImGuiNative.igSliderFloat4(label, ref vec4, min, max, displayText, power);

            value = new Color(vec4.X, vec4.Y, vec4.Z, vec4.W);
            return(result);
        }
Beispiel #2
0
 public static bool SliderVector4(string label, ref Vector4 value, float min, float max, string displayText, float power)
 {
     return(ImGuiNative.igSliderFloat4(label, ref value, min, max, displayText, power));
 }
Beispiel #3
0
 public static bool SliderImVec4(string label, ref ImVec4 value, float min, float max, string displayText, float power)
 => ImGuiNative.igSliderFloat4(label, ref value, min, max, displayText, power);