Example #1
0
 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);
         }
     }
 }
Example #2
0
 public void SetUniform(Matrix4x2d matrix, int id)
 {
     GL.UniformMatrix4x2(id, true, ref matrix);
 }
Example #3
0
 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);
         }
     }
 }
Example #4
0
 private static void Set(int location, Matrix4x2d value) => GL.UniformMatrix4x2(location, false, ref value);