diff --git a/Source/OpenTK/Graphics/ES20/Helper.cs b/Source/OpenTK/Graphics/ES20/Helper.cs index 4fdd6697..fe989cfc 100644 --- a/Source/OpenTK/Graphics/ES20/Helper.cs +++ b/Source/OpenTK/Graphics/ES20/Helper.cs @@ -82,6 +82,11 @@ namespace OpenTK.Graphics.ES20 GL.BlendColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f); } + public static void BlendColor(Color4 color) + { + GL.BlendColor(color.R, color.G, color.B, color.A); + } + #endregion #region Uniform @@ -385,6 +390,16 @@ namespace OpenTK.Graphics.ES20 GL.Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); } + public static void Viewport(OpenTK.Point location, OpenTK.Size size) + { + GL.Viewport(location.X, location.Y, size.Width, size.Height); + } + + public static void Viewport(OpenTK.Rectangle rectangle) + { + GL.Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); + } + #endregion #pragma warning restore 3019 diff --git a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs index ee8973d5..fe6eb1ac 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs @@ -123,6 +123,10 @@ namespace OpenTK.Graphics.OpenGL GL.Color4(color.X, color.Y, color.Z, color.W); } + public static void Color4(Color4 color) + { + GL.Color4(color.R, color.G, color.B, color.A); + } #endregion @@ -147,6 +151,11 @@ namespace OpenTK.Graphics.OpenGL GL.BlendColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f); } + public static void BlendColor(Color4 color) + { + GL.BlendColor(color.R, color.G, color.B, color.A); + } + #endregion #region public static void Material() overloads @@ -818,6 +827,16 @@ namespace OpenTK.Graphics.OpenGL GL.Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); } + public static void Viewport(OpenTK.Point location, OpenTK.Size size) + { + GL.Viewport(location.X, location.Y, size.Width, size.Height); + } + + public static void Viewport(OpenTK.Rectangle rectangle) + { + GL.Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); + } + #endregion #region TexEnv