示例#1
0
        // Defaults for both 2d and 3d projections
        CCCamera(CCPoint3 targetInWorldspaceIn)
        {
            targetInWorldspace = targetInWorldspaceIn;

            nearAndFarOrthographicZClipping = defaultNearAndFarOrthoClipping;
            nearAndFarPerspectiveClipping   = defaultNearAndFarPerspClipping;
            fieldOfView = defaultFieldOfView;
            aspectRatio = defaultAspectRatio;
            upDirection = new CCPoint3(Vector3.Up.X, Vector3.Up.Y, Vector3.Up.Z);
        }
示例#2
0
 public bool Equals(CCNearAndFarClipping clipping)
 {
     return(Near == clipping.Near && Far == clipping.Far);
 }
示例#3
0
 public static bool Equal(ref CCNearAndFarClipping clipping1, ref CCNearAndFarClipping clipping2)
 {
     return((clipping1.Near == clipping2.Near) && (clipping1.Far == clipping2.Far));
 }