Permalink
Browse files

Added GL.UniformMatrix* double overloads.

  • Loading branch information...
1 parent 2f9ccbc commit 8a7f506529ace4e53b9312873a253dbd13accad8 @Robmaister Robmaister committed Jan 26, 2013
Showing with 77 additions and 0 deletions.
  1. +77 −0 Source/OpenTK/Graphics/OpenGL/GLHelper.cs
View
77 Source/OpenTK/Graphics/OpenGL/GLHelper.cs
@@ -467,6 +467,17 @@ public static void UniformMatrix2(int location, bool transpose, ref Matrix2 matr
}
}
+ public static void UniformMatrix2(int location, bool transpose, ref Matrix2d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix2(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix2x3(int location, bool transpose, ref Matrix2x3 matrix)
{
unsafe
@@ -478,6 +489,17 @@ public static void UniformMatrix2x3(int location, bool transpose, ref Matrix2x3
}
}
+ public static void UniformMatrix2x3(int location, bool transpose, ref Matrix2x3d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix2x3(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix2x4(int location, bool transpose, ref Matrix2x4 matrix)
{
unsafe
@@ -489,6 +511,17 @@ public static void UniformMatrix2x4(int location, bool transpose, ref Matrix2x4
}
}
+ public static void UniformMatrix2x4(int location, bool transpose, ref Matrix2x4d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix2x4(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix3x2(int location, bool transpose, ref Matrix3x2 matrix)
{
unsafe
@@ -500,6 +533,17 @@ public static void UniformMatrix3x2(int location, bool transpose, ref Matrix3x2
}
}
+ public static void UniformMatrix3x2(int location, bool transpose, ref Matrix3x2d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix3x2(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix3(int location, bool transpose, ref Matrix3 matrix)
{
unsafe
@@ -533,6 +577,17 @@ public static void UniformMatrix3x4(int location, bool transpose, ref Matrix3x4
}
}
+ public static void UniformMatrix3x4(int location, bool transpose, ref Matrix3x4d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix3x4(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix4x2(int location, bool transpose, ref Matrix4x2 matrix)
{
unsafe
@@ -544,6 +599,17 @@ public static void UniformMatrix4x2(int location, bool transpose, ref Matrix4x2
}
}
+ public static void UniformMatrix4x2(int location, bool transpose, ref Matrix4x2d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix4x2(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix4x3(int location, bool transpose, ref Matrix4x3 matrix)
{
unsafe
@@ -555,6 +621,17 @@ public static void UniformMatrix4x3(int location, bool transpose, ref Matrix4x3
}
}
+ public static void UniformMatrix4x3(int location, bool transpose, ref Matrix4x3d matrix)
+ {
+ unsafe
+ {
+ fixed (double* matrix_ptr = &matrix.Row0.X)
+ {
+ GL.UniformMatrix4x3(location, 1, transpose, matrix_ptr);
+ }
+ }
+ }
+
public static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix)
{
unsafe

0 comments on commit 8a7f506

Please sign in to comment.