mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 06:15:38 +00:00
Added GL.UniformMatrix* double overloads.
This commit is contained in:
parent
2f9ccbc3af
commit
8a7f506529
|
@ -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)
|
public static void UniformMatrix2x3(int location, bool transpose, ref Matrix2x3 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
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)
|
public static void UniformMatrix2x4(int location, bool transpose, ref Matrix2x4 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
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)
|
public static void UniformMatrix3x2(int location, bool transpose, ref Matrix3x2 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
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)
|
public static void UniformMatrix3(int location, bool transpose, ref Matrix3 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
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)
|
public static void UniformMatrix4x2(int location, bool transpose, ref Matrix4x2 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
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)
|
public static void UniformMatrix4x3(int location, bool transpose, ref Matrix4x3 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
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)
|
public static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix)
|
||||||
{
|
{
|
||||||
unsafe
|
unsafe
|
||||||
|
|
Loading…
Reference in a new issue