Added GL.UniformMatrix* double overloads.

This commit is contained in:
Robert Rouhani 2013-01-26 16:23:40 -05:00
parent 2f9ccbc3af
commit 8a7f506529

View file

@ -467,6 +467,17 @@ namespace OpenTK.Graphics.OpenGL
}
}
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 @@ namespace OpenTK.Graphics.OpenGL
}
}
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 @@ namespace OpenTK.Graphics.OpenGL
}
}
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 @@ namespace OpenTK.Graphics.OpenGL
}
}
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 @@ namespace OpenTK.Graphics.OpenGL
}
}
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 @@ namespace OpenTK.Graphics.OpenGL
}
}
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 @@ namespace OpenTK.Graphics.OpenGL
}
}
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