- Timestamp:
- Jan 29, 2007, 12:55:48 AM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r10456 r10473 452 452 453 453 // tick camera first 454 State::getCamera()->tick(this->dtS); 454 CameraMan* man = State::getCameraman(); 455 (man->getCurrentCam())->tick(this->dtS); 455 456 // TICK everything 456 457 for (i = 0; i < this->dataTank->tickLists.size(); ++i) … … 587 588 void GameWorld::applyCameraSettings() 588 589 { 589 590 State::getCamera()->apply ();591 State::getCamera()->project ();590 CameraMan* man = State::getCameraman(); 591 man->getCurrentCam()->apply (); 592 man->getCurrentCam()->project (); 592 593 GraphicsEngine::storeMatrices(); 593 594 } -
trunk/src/world_entities/cameraman.cc
r10463 r10473 1 /*1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 -
trunk/src/world_entities/cameraman.h
r10464 r10473 53 53 float getCurrCameraCoorY(); 54 54 float getCurrCameraCoorZ(); 55 const Camera* getCurrentCam() { return this->currentCam; } 55 const Camera* getCurrentCam() const { return this->currentCam; } 56 Camera* getCurrentCam() { return this->currentCam; } 56 57 bool cameraIsInVector(Camera* camera); 57 58 -
trunk/src/world_entities/effects/billboard.cc
r10433 r10473 22 22 #include "glincl.h" 23 23 #include "state.h" 24 24 #include "cameraman.h" 25 #include "camera.h" 25 26 26 27 #include "debug.h" … … 133 134 this->material->select(); 134 135 135 const PNode* camera = State::getCameraNode(); //!< @todo MUST be different 136 const CameraMan* man = State::getCameraman(); 137 const Camera* camera = man->getCurrentCam(); //!< @todo MUST be different 136 138 Vector cameraPos = camera->getAbsCoor(); 137 Vector cameraTargetPos = State::getCameraTargetNode()->getAbsCoor();139 Vector cameraTargetPos = camera->getAbsCoor(); 138 140 Vector view = cameraTargetPos - cameraPos; 139 141 Vector up = Vector(0, 1, 0); -
trunk/src/world_entities/planet.cc
r10432 r10473 58 58 PrimitiveModel* model = new PrimitiveModel(PRIM_SPHERE, this->size, 50); 59 59 this->setModel(model); 60 61 this->cloudModel = new PrimitiveModel(PRIM_SPHERE, this->size + 1, 50);62 60 } 63 61 -
trunk/src/world_entities/planet.h
r10432 r10473 44 44 45 45 Model* cloudModel; //!< the model for the cloud 46 Billboard* halo; //!< halo around the planet47 46 48 47 bool bClouds; //!< true if there are clouds defined
Note: See TracChangeset
for help on using the changeset viewer.