- Timestamp:
- Feb 21, 2006, 6:01:31 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r7108 r7173 80 80 81 81 /** 82 * sets the Field of View to fofy83 * @param fovy new field of view factor (in degrees)84 */85 void Camera::setFovy(float fovy)86 {87 this->fovy = fovy;88 }89 90 /**91 82 * Sets a new clipping region 92 83 * @param nearClip The near clip plane … … 152 143 153 144 154 float tmpFovy = (this->toFovy - this->fovy) 145 float tmpFovy = (this->toFovy - this->fovy); 155 146 if (tmpFovy > 0.01) 156 147 this->fovy += tmpFovy * fabsf(dt); -
trunk/src/world_entities/camera.h
r7108 r7173 41 41 42 42 void setAspectRatio(float aspectRatio); 43 void setFovy(float fovy);44 43 void setClipRegion(float nearClip, float farClip); 44 45 /** @param fovy new field of view factor (in degrees) */ 46 void setFovy(float fovy) { this->fovy = fovy; }; 47 /** @param fovy new field of view factor (in degrees) to iterate to */ 48 void setToFovy(float toFovy) { this->toFovy = toFovy; }; 45 49 46 50 void setViewMode(ViewMode mode); -
trunk/src/world_entities/playable.cc
r7121 r7173 114 114 if (this->currentPlayer != NULL) 115 115 this->currentPlayer->weaponConfigChanged(); 116 } 117 118 /** 119 * @brief sets the CameraMode. 120 * @param cameraMode: the Mode to switch to. 121 */ 122 void Playable::setCameraMode(unsigned int cameraMode) 123 { 124 116 125 } 117 126 -
trunk/src/world_entities/playable.h
r7118 r7173 50 50 void attachCamera(); 51 51 void detachCamera(); 52 virtual void setCameraMode(unsigned int cameraMode = 0); 52 53 53 54 virtual void collidesWith(WorldEntity* entity, const Vector& location); -
trunk/src/world_entities/space_ships/space_ship.cc
r7122 r7173 20 20 #include "space_ship.h" 21 21 22 #include "objModel.h"23 22 #include "resource_manager.h" 24 23 25 #include "weapons/weapon_manager.h"26 24 #include "weapons/test_gun.h" 27 25 #include "weapons/turret.h"
Note: See TracChangeset
for help on using the changeset viewer.