Ejemplo n.º 1
0
        private static bool DrawGradient(StyleBlock block, string funcName, List <StyleSheetResolver.Value[]> args, GradientParams gp)
        {
            if (funcName != "linear-gradient")
            {
                return(false);
            }

            var gradientTexture = GenerateGradient(gp.rect, args);

            if (gradientTexture == null)
            {
                return(false);
            }
            GUI.DrawTexture(gp.rect, gradientTexture, ScaleMode.ScaleAndCrop, true, 0f, gp.colorTint, Vector4.zero, gp.radius);
            return(true);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GradientParams obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }