Changeset 7108 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 7, 2006, 11:22:34 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r7107 r7108 178 178 // setting up the perspective 179 179 // speed-up feature 180 glMatrixMode (GL_MODELVIEW); 181 glLoadIdentity(); 182 183 184 } 185 186 void Camera::project() 187 { 180 188 Vector cameraPosition = this->getAbsCoor(); 181 189 Vector targetPosition = this->target->getAbsCoor(); 182 190 183 glMatrixMode (GL_MODELVIEW); 184 glLoadIdentity(); 185 186 // Setting the Camera Eye, lookAt and up Vectors 191 // Setting the Camera Eye, lookAt and up Vectors 187 192 gluLookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z, 188 193 targetPosition.x, targetPosition.y, targetPosition.z, 189 194 this->upVector.x, this->upVector.y, this->upVector.z); 190 191 192 } 195 } 196 193 197 194 198 /** -
trunk/src/world_entities/camera.h
r7014 r7108 54 54 void tick(float dt); 55 55 void apply (); 56 void project(); 56 57 57 58 void process(const Event &event);
Note: See TracChangeset
for help on using the changeset viewer.