Added System.Drawing.Rectangle and RectangleF overloads to GL.Rect.

This commit is contained in:
the_fiddler 2008-06-24 18:23:32 +00:00
parent be8eb2d105
commit 26645b1cee

View file

@ -641,7 +641,7 @@ namespace OpenTK.Graphics
#endregion #endregion
#region overloads using OpenTK.Math classes #region --- Overloads for OpenTK.Math ---
public static void Normal3(Vector3 normal) public static void Normal3(Vector3 normal)
{ {
@ -887,6 +887,44 @@ namespace OpenTK.Graphics
#endregion #endregion
#region public static void Rect(System.Drawing.RectangleF rect)
public static void Rect(System.Drawing.RectangleF rect)
{
GL.Rect(rect.Left, rect.Top, rect.Right, rect.Bottom);
}
#endregion
#region public static void Rect(ref System.Drawing.RectangleF rect)
[CLSCompliant(false)]
public static void Rect(ref System.Drawing.RectangleF rect)
{
GL.Rect(rect.Left, rect.Top, rect.Right, rect.Bottom);
}
#endregion
#region public static void Rect(System.Drawing.Rectangle rect)
public static void Rect(System.Drawing.Rectangle rect)
{
GL.Rect(rect.Left, rect.Top, rect.Right, rect.Bottom);
}
#endregion
#region public static void Rect(ref System.Drawing.Rectangle rect)
[CLSCompliant(false)]
public static void Rect(ref System.Drawing.Rectangle rect)
{
GL.Rect(rect.Left, rect.Top, rect.Right, rect.Bottom);
}
#endregion
#endregion #endregion
} }
} }