mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 05:35:38 +00:00
Added System.Drawing.Rectangle and RectangleF overloads to GL.Rect.
This commit is contained in:
parent
be8eb2d105
commit
26645b1cee
|
@ -641,7 +641,7 @@ namespace OpenTK.Graphics
|
|||
|
||||
#endregion
|
||||
|
||||
#region overloads using OpenTK.Math classes
|
||||
#region --- Overloads for OpenTK.Math ---
|
||||
|
||||
public static void Normal3(Vector3 normal)
|
||||
{
|
||||
|
@ -887,6 +887,44 @@ namespace OpenTK.Graphics
|
|||
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue