Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10654 in orxonox.OLD for branches/hud/src/world_entities/tools


Ignore:
Timestamp:
May 12, 2007, 12:13:13 AM (18 years ago)
Author:
bknecht
Message:

Implemented zooming function

Location:
branches/hud/src/world_entities/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/hud/src/world_entities/tools/camera.cc

    r10647 r10654  
    211211      this->setRelCoorSoft(this->viewFrontDistance, 0, 0, 5);
    212212      this->target->setRelCoorSoft(Vector(10,0,0), 5);
     213      break;
     214    }
     215    case Camera::ViewFPSZoom:
     216    {
     217      this->fovy = viewNormalFovy;
     218      this->toFovy = 30;
     219      this->setRelCoorSoft(2, 0, 0, 5);
     220      this->target->setRelCoorSoft(Vector(10,0,0), 5);
    213221    }
    214222  }
  • branches/hud/src/world_entities/tools/camera.h

    r10647 r10654  
    3535    ViewRight,
    3636    ViewTop,
    37     ViewFPS
     37    ViewFPS,
     38    ViewFPSZoom
    3839  };
    3940  public:
Note: See TracChangeset for help on using the changeset viewer.