From eb75e708b7758232b32bf5502b7a91e2e2962c50 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 19 Jul 2009 15:31:37 +0000 Subject: [PATCH] * GLHelper.cs: Added Quaternion overload to GL.Uniform4. --- Source/OpenTK/Graphics/GL/GLHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/OpenTK/Graphics/GL/GLHelper.cs b/Source/OpenTK/Graphics/GL/GLHelper.cs index 51fbee8d..2685f320 100644 --- a/Source/OpenTK/Graphics/GL/GLHelper.cs +++ b/Source/OpenTK/Graphics/GL/GLHelper.cs @@ -896,6 +896,11 @@ namespace OpenTK.Graphics GL.Uniform4(location, color.R, color.G, color.B, color.A); } + public static void Uniform4(int location, Quaternion quaternion) + { + GL.Uniform4(location, quaternion.X, quaternion.Y, quaternion.Z, quaternion.W); + } + #endregion #endregion