igColorEdit3() private method

private igColorEdit3 ( string label, Vector3 col ) : bool
label string
col Vector3
return bool
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public static unsafe bool ColorEdit3(string label, ref Vector3 color, ColorEditFlags flags = ColorEditFlags.Default)
        {
            Vector3 localColor = color;
            bool    result     = ImGuiNative.igColorEdit3(label, &localColor, flags);

            if (result)
            {
                color = localColor;
            }

            return(result);
        }
Ejemplo n.º 3
0
        public static unsafe bool ColorEdit3(string label, ref float r, ref float g, ref float b, bool showAlpha)
        {
            Vector3 localColor = new Vector3(r, g, b);
            bool    result     = ImGuiNative.igColorEdit3(label, &localColor);

            if (result)
            {
                r = localColor.X;
                g = localColor.Y;
                b = localColor.Z;
            }

            return(result);
        }
Ejemplo n.º 4
0
        public static unsafe bool ColorEdit3(string label, ref float r, ref float g, ref float b, ColorEditFlags flags = ColorEditFlags.Default)
        {
            Vector3 localColor = new Vector3(r, g, b);
            bool    result     = ImGuiNative.igColorEdit3(label, &localColor, flags);

            if (result)
            {
                r = localColor.X;
                g = localColor.Y;
                b = localColor.Z;
            }

            return(result);
        }
Ejemplo n.º 5
0
 public static bool ColorEdit3(string label, Vector3 color)
 {
     return(ImGuiNative.igColorEdit3(label, color));
 }