- Timestamp:
- Jan 26, 2007, 11:11:01 PM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r10399 r10400 161 161 if( element != NULL) 162 162 { 163 printf("found CameraMan tag \n");164 163 CameraMan* camMan = new CameraMan(element); 165 164 State::setCameraman(camMan); -
trunk/src/world_entities/blackscreen.cc
r10379 r10400 114 114 glVertex3f(0., 100.0f,100.0f); 115 115 glVertex3f(0., 100.0f,-100.0f); 116 116 117 117 glEnd(); 118 118 -
trunk/src/world_entities/cameraman.cc
r10398 r10400 46 46 currentCam=State::getCamera(); 47 47 this->cameras.push_back(currentCam); 48 48 49 State::setCamera(currentCam, currentCam->getTarget()); 49 50 this->fadeToBlack=new BlackScreen(); 51 this->fadeToBlack->setParent(this->currentCam); 52 this->fadeToBlack->setRelCoor(3., 0., 0.); 50 53 51 54 if (root != NULL) … … 136 139 BaseObject* object = ObjectListBase::getBaseObject(className, objectName); 137 140 BaseObject* newCam = ObjectListBase::getBaseObject("Camera", camName); 138 if( object != NULL && object->isA(PNode::staticClassID()))141 if( object != NULL && newCam != NULL && object->isA(PNode::staticClassID())) 139 142 dynamic_cast<Camera*>(newCam)->lookAt(dynamic_cast<PNode*>(object)); 140 143 }
Note: See TracChangeset
for help on using the changeset viewer.