/// <summary> /// Toggle of color mask. /// </summary> /// <param name="mask">mask when this switch is turned on.</param> public ColorMaskSwitch(ColorMask mask) { this.Mask = mask; this.OriginalMask = ColorMask.GetCurrent(); }
/// <summary> /// Toggle of color mask. /// </summary> /// <param name="redWritable">red mask when this switch is turned on</param> /// <param name="greenWritable">green mask when this switch is turned on</param> /// <param name="blueWritable">blue mask when this switch is turned on</param> /// <param name="alphaWritable">alpha mask when this switch is turned on</param> public ColorMaskSwitch(bool redWritable, bool greenWritable, bool blueWritable, bool alphaWritable) { this.Mask = new ColorMask(redWritable, greenWritable, blueWritable, alphaWritable); this.OriginalMask = ColorMask.GetCurrent(); }