Changeset 7347 in orxonox.OLD for trunk/src/world_entities/camera.cc
- Timestamp:
- Apr 19, 2006, 1:38:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r7173 r7347 42 42 this->setClipRegion(.1, 2000); 43 43 44 this->setViewMode( VIEW_NORMAL);44 this->setViewMode(Camera::ViewNormal); 45 45 46 46 this->setParentMode(PNODE_ALL); … … 100 100 { 101 101 default: 102 case VIEW_NORMAL:102 case Camera::ViewNormal: 103 103 this->toFovy = 60.0; 104 104 this->setRelCoorSoft(-10, 5, 0); 105 105 this->target->setRelCoorSoft(0,0,0); 106 106 break; 107 case VIEW_BEHIND:108 break; 109 case VIEW_FRONT:107 case Camera::ViewBehind: 108 break; 109 case Camera::ViewFront: 110 110 this->toFovy = 120.0; 111 111 this->setRelCoorSoft(4, 0, 0, 5); 112 112 this->target->setRelCoorSoft(Vector(10,0,0), 5); 113 113 break; 114 case VIEW_LEFT:114 case Camera::ViewLeft: 115 115 this->toFovy = 90; 116 116 this->setRelCoorSoft(0, 1, -10, .5); 117 117 this->target->setRelCoorSoft(0,0,0); 118 118 break; 119 case VIEW_RIGHT:119 case Camera::ViewRight: 120 120 this->toFovy = 90; 121 121 this->setRelCoorSoft(Vector(0, 1, 10)); 122 122 this->target->setRelCoorSoft(0,0,0); 123 123 break; 124 case VIEW_TOP:124 case Camera::ViewTop: 125 125 this->toFovy= 120; 126 126 this->setRelCoorSoft(Vector(30, 50, 0)); … … 195 195 if( event.type == KeyMapper::PEV_VIEW0) 196 196 { 197 this->setViewMode( VIEW_NORMAL);197 this->setViewMode(Camera::ViewNormal); 198 198 } 199 199 else if( event.type == KeyMapper::PEV_VIEW1) 200 200 { 201 this->setViewMode( VIEW_BEHIND);201 this->setViewMode(Camera::ViewBehind); 202 202 } 203 203 else if( event.type == KeyMapper::PEV_VIEW2) 204 204 { 205 this->setViewMode( VIEW_FRONT);205 this->setViewMode(Camera::ViewFront); 206 206 } 207 207 else if( event.type == KeyMapper::PEV_VIEW3) 208 208 { 209 this->setViewMode( VIEW_LEFT);209 this->setViewMode(Camera::ViewLeft); 210 210 } 211 211 else if( event.type == KeyMapper::PEV_VIEW4) 212 212 { 213 this->setViewMode( VIEW_RIGHT);213 this->setViewMode(Camera::ViewRight); 214 214 } 215 215 else if( event.type == KeyMapper::PEV_VIEW5) 216 216 { 217 this->setViewMode( VIEW_TOP);217 this->setViewMode(Camera::ViewTop); 218 218 } 219 219 }
Note: See TracChangeset
for help on using the changeset viewer.