From 03f756f8d1dfcb59eacf0cb3a68ea33e82550296 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 6 Oct 2009 08:03:53 +0000 Subject: [PATCH] Added ClearColor(Color4) overload. Fixes issue [#1207]: "[GL] add Color4 argument overload for ClearColor". --- Source/OpenTK/Graphics/OpenGL/GLHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs index 3afca29f..af662e68 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs @@ -404,6 +404,11 @@ namespace OpenTK.Graphics.OpenGL GL.ClearColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f); } + public static void ClearColor(Color4 color) + { + GL.ClearColor(color.R, color.G, color.B, color.A); + } + #endregion #region public static void BlendColor() overloads