Changeset 10473 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 29, 2007, 12:55:48 AM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
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.