Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7347 in orxonox.OLD for trunk/src/world_entities/camera.cc


Ignore:
Timestamp:
Apr 19, 2006, 1:38:23 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some more stuff (now one can play around with them using the Shell →
GameWorld Urban Playmode …. Vertical/Full3D/Horizontal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r7173 r7347  
    4242  this->setClipRegion(.1, 2000);
    4343
    44   this->setViewMode(VIEW_NORMAL);
     44  this->setViewMode(Camera::ViewNormal);
    4545
    4646  this->setParentMode(PNODE_ALL);
     
    100100  {
    101101    default:
    102     case VIEW_NORMAL:
     102    case Camera::ViewNormal:
    103103      this->toFovy = 60.0;
    104104      this->setRelCoorSoft(-10, 5, 0);
    105105      this->target->setRelCoorSoft(0,0,0);
    106106      break;
    107     case VIEW_BEHIND:
    108       break;
    109     case VIEW_FRONT:
     107    case Camera::ViewBehind:
     108      break;
     109    case Camera::ViewFront:
    110110      this->toFovy = 120.0;
    111111      this->setRelCoorSoft(4, 0, 0, 5);
    112112      this->target->setRelCoorSoft(Vector(10,0,0), 5);
    113113      break;
    114     case VIEW_LEFT:
     114    case Camera::ViewLeft:
    115115      this->toFovy = 90;
    116116      this->setRelCoorSoft(0, 1, -10, .5);
    117117      this->target->setRelCoorSoft(0,0,0);
    118118      break;
    119     case VIEW_RIGHT:
     119    case Camera::ViewRight:
    120120      this->toFovy = 90;
    121121      this->setRelCoorSoft(Vector(0, 1, 10));
    122122      this->target->setRelCoorSoft(0,0,0);
    123123      break;
    124     case VIEW_TOP:
     124    case Camera::ViewTop:
    125125      this->toFovy= 120;
    126126      this->setRelCoorSoft(Vector(30, 50, 0));
     
    195195  if( event.type == KeyMapper::PEV_VIEW0)
    196196  {
    197     this->setViewMode(VIEW_NORMAL);
     197    this->setViewMode(Camera::ViewNormal);
    198198  }
    199199  else if( event.type == KeyMapper::PEV_VIEW1)
    200200  {
    201     this->setViewMode(VIEW_BEHIND);
     201    this->setViewMode(Camera::ViewBehind);
    202202  }
    203203  else if( event.type == KeyMapper::PEV_VIEW2)
    204204  {
    205     this->setViewMode(VIEW_FRONT);
     205    this->setViewMode(Camera::ViewFront);
    206206  }
    207207  else if( event.type == KeyMapper::PEV_VIEW3)
    208208  {
    209     this->setViewMode(VIEW_LEFT);
     209    this->setViewMode(Camera::ViewLeft);
    210210  }
    211211  else if( event.type == KeyMapper::PEV_VIEW4)
    212212  {
    213     this->setViewMode(VIEW_RIGHT);
     213    this->setViewMode(Camera::ViewRight);
    214214  }
    215215  else if( event.type == KeyMapper::PEV_VIEW5)
    216216  {
    217     this->setViewMode(VIEW_TOP);
     217    this->setViewMode(Camera::ViewTop);
    218218  }
    219219}
Note: See TracChangeset for help on using the changeset viewer.