From 2d90e61fa524095685d7715b584ae913c82b26da Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 20 Jun 2017 15:09:01 +0200 Subject: [PATCH] Removed obsolete constructor. --- src/OpenTK/Graphics/Color4.cs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/OpenTK/Graphics/Color4.cs b/src/OpenTK/Graphics/Color4.cs index 3174d70..9f2d260 100644 --- a/src/OpenTK/Graphics/Color4.cs +++ b/src/OpenTK/Graphics/Color4.cs @@ -6,7 +6,7 @@ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to +// in the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of // the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: @@ -47,17 +47,17 @@ namespace OpenTK.Graphics /// The red component of this Color4 structure. /// public float R; - + /// /// The green component of this Color4 structure. /// public float G; - + /// /// The blue component of this Color4 structure. /// public float B; - + /// /// The alpha component of this Color4 structure. /// @@ -97,15 +97,6 @@ namespace OpenTK.Graphics A = a / (float)Byte.MaxValue; } - /// - /// Constructs a new Color4 structure from the specified System.Drawing.Color. - /// - /// The System.Drawing.Color containing the component values. - [Obsolete("Use new Color4(r, g, b, a) instead.")] - public Color4(Color color) - : this(color.R, color.G, color.B, color.A) - { } - #endregion #region Public Members @@ -1276,7 +1267,7 @@ namespace OpenTK.Graphics return new Vector4(x, y, z, rgb.A); } - #endregion + #endregion #region YUV -- 2.7.4