public static void ResizeGL(double width, double height)
{
// Set the projection matrix.
OpenGL.MatrixMode(OpenGL.GL_PROJECTION);
// Load the identity.
OpenGL.LoadIdentity();
//// Create a perspective transformation.
//OpenGL.gluPerspective(60.0f, width / height, 0.01, 100.0);
mat4 projectionMatrix = glm.perspective(glm.radians(60.0f), (float)(width / height), 0.01f, 100.0f);
OpenGL.MultMatrixf((projectionMatrix * viewMatrix).ToArray());
// Set the modelview matrix.
OpenGL.MatrixMode(OpenGL.GL_MODELVIEW);
}