Applied rdrake's patch for LoadMatrix, etc Matrix4d helpers.

This commit is contained in:
the_fiddler 2009-01-31 08:40:11 +00:00
parent 989b0c81c6
commit 6db13c3341

View file

@ -798,6 +798,50 @@ namespace OpenTK.Graphics
}
}
public static void MultMatrix(ref Matrix4d mat)
{
unsafe
{
fixed (Double* m_ptr = &mat.Row0.X)
{
Delegates.glMultMatrixd((Double*)m_ptr);
}
}
}
public static void LoadMatrix(ref Matrix4d mat)
{
unsafe
{
fixed (Double* m_ptr = &mat.Row0.X)
{
Delegates.glLoadMatrixd((Double*)m_ptr);
}
}
}
public static void LoadTransposeMatrix(ref Matrix4d mat)
{
unsafe
{
fixed (Double* m_ptr = &mat.Row0.X)
{
Delegates.glLoadTransposeMatrixd((Double*)m_ptr);
}
}
}
public static void MultTransposeMatrix(ref Matrix4d mat)
{
unsafe
{
fixed (Double* m_ptr = &mat.Row0.X)
{
Delegates.glMultTransposeMatrixd((Double*)m_ptr);
}
}
}
#endregion
#region public static void ShaderSource(Int32 shader, System.String @string)