igDragFloat4() 개인적인 메소드

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
리턴 bool
예제 #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);
        }
예제 #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));
 }
예제 #3
0
파일: ImGui.cs 프로젝트: se5a/ImGuiCS
 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);