igColorEdit3() приватный Метод

private igColorEdit3 ( string label, Vector3 col ) : bool
label string
col Vector3
Результат bool
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #5
0
 public static bool ColorEdit3(string label, Vector3 color)
 {
     return(ImGuiNative.igColorEdit3(label, color));
 }