Changeset 6770 in orxonox.OLD for branches/network/src
- Timestamp:
- Jan 26, 2006, 2:34:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/camera.cc
r6765 r6770 200 200 if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f; 201 201 202 glMatrixMode (GL_MODELVIEW);203 glLoadIdentity();204 205 206 202 // Setting the Camera Eye, lookAt and up Vectors 207 203 gluLookAt(cameraPosition.x - delay.x, cameraPosition.y - delay.y, cameraPosition.z - delay.z, 208 204 targetPosition.x, targetPosition.y, targetPosition.z, 209 205 up.x, up.y, up.z); 206 207 glMatrixMode (GL_MODELVIEW); 208 glLoadIdentity(); 210 209 } 211 210
Note: See TracChangeset
for help on using the changeset viewer.