Changeset 2096 in orxonox.OLD for orxonox/branches/chris/src/camera.cc
- Timestamp:
- Jul 9, 2004, 11:14:42 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/camera.cc
r2080 r2096 21 21 using namespace std; 22 22 23 /** 24 \brief creates a Camera 25 26 This standard constructor sets all parameters to zero 27 */ 23 28 Camera::Camera () 24 29 { … … 30 35 } 31 36 37 /** 38 \brief default destructor 39 */ 32 40 Camera::~Camera () 33 41 { 34 42 } 35 43 44 /** 45 \brief time based actualisation of camera parameters 46 \param deltaT: The amount of time that has passed in milliseconds 47 48 This is called by the World in every time_slice, use it to do fancy time dependant effects (such 49 as smooth camera movement or swaying). 50 */ 36 51 void Camera::time_slice (Uint32 deltaT) 37 52 { … … 39 54 } 40 55 56 /** 57 \brief this calculates the location where the track wants the camera to be 58 59 This refreshes the placement the camera should have according to the bound entity's position on the track. 60 */ 41 61 void Camera::update_desired_place () 42 62 { … … 56 76 } 57 77 78 /** 79 \brief initialize rendering perspective according to this camera 80 81 This is called immediately before the a rendering cycle starts, it sets all global rendering options as 82 well as the GL_PROJECTION matrix according to the camera. 83 */ 58 84 void Camera::apply () 59 85 { … … 73 99 } 74 100 101 /** 102 \brief set the camera position 103 \param plc: The Placement to set the camera to 104 105 This will set the actual and desired placement of the camera to plc 106 */ 75 107 void Camera::jump (Placement* plc = NULL) 76 108 { … … 86 118 } 87 119 120 /** 121 \brief bind the camera to an entity 122 \param entity: The enitity to bind the camera to 123 124 This sets the focus of the camera to the given entity. This means that it will use the given WorldEntity's 125 Location and get_lookat() to determine the viewpoint the camera will render from. 126 Note that you cannot bind a camera to a free entity. 127 */ 88 128 void Camera::bind (WorldEntity* entity) 89 129 {
Note: See TracChangeset
for help on using the changeset viewer.