Changeset 10348 in orxonox.OLD for branches/camera/src/world_entities
- Timestamp:
- Jan 24, 2007, 6:55:15 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/blackscreen.cc
r10343 r10348 129 129 if (i>0) 130 130 i=i-0.005*fadeSpeed; 131 else 132 this->toList(OM_DEAD); 131 133 } 132 134 … … 139 141 void BlackScreen::toggleFade () 140 142 { 143 this->state= !this->state; 141 144 142 this->state= !this->state; 145 if(state) 146 { 147 this->toList(OM_COMMON); 148 } 143 149 } 144 150 -
branches/camera/src/world_entities/camera.cc
r10338 r10348 313 313 void CameraTarget::detach() 314 314 { 315 masta->setParent Soft(target);316 masta->getTargetNode()->setParent Soft(target);315 masta->setParent(target); 316 masta->getTargetNode()->setParent(target); 317 317 } 318 318 … … 325 325 void CameraTarget::atach(PNode* object) 326 326 { 327 masta->setParent Soft(object);328 masta->getTargetNode()->setParent Soft(object);327 masta->setParent(object); 328 masta->getTargetNode()->setParent(object); 329 329 } 330 330 -
branches/camera/src/world_entities/cameraman.cc
r10343 r10348 54 54 State::setCamera(currentCam, currentCam->getTarget()); 55 55 OrxSound::SoundEngine::getInstance()->setListener(currentCam); 56 56 57 this->fadeToBlack->setParent(this->currentCam); 57 58 this->fadeToBlack->setRelCoor(3., 0., 0.); … … 60 61 } 61 62 62 63 void CameraMan::testCam()64 {65 cameras[1]->lookAt(currentCam->getTarget());66 cameras[1]->setParentSoft(currentCam->getParent());67 }68 63 69 64 -
branches/camera/src/world_entities/cameraman.h
r10343 r10348 30 30 void jumpCurrCam(int x, int y, int z); 31 31 void changeSpeed(float speed); 32 void testCam();33 32 void setClipRegion(float nearClip, float farClip); 34 33 void togglFade(); -
branches/camera/src/world_entities/test_entity.cc
r10338 r10348 80 80 { 81 81 CM= State::getCameraman(); 82 CM->createCam(); 83 CM->moveCam(-300, 0, 0, 0); 82 CM->changeCurrTarget( "BlackScreen", "fadeToBlack"); 84 83 } 85 84 … … 126 125 { 127 126 127 128 glColor4f(0,0,0,0); 129 glBegin(GL_QUADS); 130 glVertex3f(50.,-100.0f,-100.0f); 131 glVertex3f(50., -100.0f,100.0f); 132 glVertex3f(50., 100.0f,100.0f); 133 glVertex3f(50., 100.0f,-100.0f); 134 135 glEnd(); 136 128 137 } 129 138
Note: See TracChangeset
for help on using the changeset viewer.