Changeset 10257 in orxonox.OLD for branches/camera
- Timestamp:
- Jan 17, 2007, 2:21:57 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/cameraman.cc
r10254 r10257 36 36 this->cameras.push_back(new Camera()); 37 37 cameras[cameras.size()-1]->target->detach(); 38 cout << cameras[1]->getAbsCoorX() << "," << cameras[1]->getAbsCoorY() << "," << cameras[1]->getAbsCoorZ() << endl << cameras[1]->target->getAbsCoorX() << endl; 38 39 39 40 } … … 43 44 if (cameraNo<cameras.size()) 44 45 { 45 cout << "TTTTT" << currentCam << "TTTT \n";46 46 currentCam=cameras[cameraNo]; 47 cout << "TTTT" << currentCam << "*" << cameras.size() << "*TTTTT\n" ;48 47 State::setCamera(currentCam, currentCam->getTarget()); 49 cout << cameras[0];50 48 } 51 49 -
branches/camera/src/world_entities/cameraman.h
r10254 r10257 11 11 Camera* currentCam; 12 12 // int camNo; 13 std::vector<Camera*> cameras; 13 14 14 15 15 16 16 public: 17 std::vector<Camera*> cameras; 17 18 cameraman(); 18 19 void setCam(int CameraNo); -
branches/camera/src/world_entities/test_entity.cc
r10255 r10257 23 23 #include "test_entity.h" 24 24 #include "debug.h" 25 26 25 #include <iostream.h> 27 26 #include "state.h" 28 27 #include "shell_command.h" … … 101 100 void TestEntity::t4() 102 101 { 102 cout << CM->cameras[1]->getAbsCoorX() << endl <<CM->cameras[1]->getAbsCoorY() << endl <<CM->cameras[1]->getAbsCoorZ() << endl << CM->cameras[1]->target->getAbsCoorX() << endl; 103 103 CM->testCam(); 104 cout << CM->cameras[1]->getAbsCoorX() << endl <<CM->cameras[1]->getAbsCoorY() << endl <<CM->cameras[1]->getAbsCoorZ() << endl << CM->cameras[1]->target->getAbsCoorX() << endl; 104 105 } 105 106
Note: See TracChangeset
for help on using the changeset viewer.