CSharpGL.ICameraHelper.LegacyProjection C# (CSharp) Method

LegacyProjection() public static method

Run legacy projection and view transform.(from world space to clip space)
public static LegacyProjection ( this camera ) : void
camera this
return void
        public static void LegacyProjection(this ICamera camera)
        {
            if (camera == null) { throw new System.ArgumentNullException("camera"); }
            // projection and view matrix.(gluPerspective() and gluLookAt())
            mat4 projection = camera.GetProjectionMatrix();
            mat4 view = camera.GetViewMatrix();

            //  Set the projection matrix.(projection and view matrix actually.)
            OpenGL.MultMatrixf((projection * view).ToArray());
        }
    }
ICameraHelper