Changeset 10068 in orxonox.OLD for branches/camera
- Timestamp:
- Dec 13, 2006, 3:49:03 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/camera.cc
r10065 r10068 20 20 #include "vector.h" 21 21 #include <iostream.h> 22 22 #include "state.h" 23 #include "shell_command.h" 23 24 24 25 ObjectListDefinition(Camera); 26 25 27 26 28 /** … … 185 187 186 188 //Setting the Camera Eye, lookAt and up Vectors 187 gl LookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z,189 gluLookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z, 188 190 targetPosition.x, targetPosition.y, targetPosition.z, 189 191 this->upVector.x, this->upVector.y, this->upVector.z); … … 299 301 // CAMERA-TARGET // 300 302 /////////////////// 303 //REATE_FACTORY(CameraTarget); 304 301 305 302 306 ObjectListDefinition(CameraTarget); 307 308 SHELL_COMMAND(det, CameraTarget, detach); 309 310 303 311 CameraTarget::CameraTarget() 304 312 { … … 310 318 311 319 312 CameraTarget::detach()313 { 314 State::getCameraTargetNode()->setParentSoft(N ULL);315 } 316 317 318 319 320 320 void CameraTarget::detach() 321 { 322 State::getCameraTargetNode()->setParentSoft(Null); 323 } 324 325 326 327 328 -
branches/camera/src/world_entities/camera.h
r10065 r10068 92 92 private: 93 93 CameraTarget(); 94 virtual ~CameraTarget() {} 94 95 95 96 public: 97 void detach(); 96 98 }; 97 99
Note: See TracChangeset
for help on using the changeset viewer.