コード例 #1
0
        private void LoadCameras()
        {
            FreeCamera = new FreeCamera(mBox, AspectRatio);       // Initialize the camera

            FixedCamera = new FixedCamera(mBox, AspectRatio);     // This camera cannot be used until an
                                                                  // target entity is assigned to it.

            CurrentCamera = FreeCamera;
        }
コード例 #2
0
 public void SetupCamera(Camera inCam)
 {
     if (inCam is FreeCamera)
     {
         FreeInputCam    = (inCam as FreeCamera);
         CurrentInputCam = FreeInputCam;
     }
     else if (inCam is FixedCamera)
     {
         FixedInputCam   = (inCam as FixedCamera);
         CurrentInputCam = FixedInputCam;
     }
 }