Logo Search packages:      
Sourcecode: 3depict version File versions  Download package

void Scene::setTempCam (  ) 

Construct (or refresh) a temporary camera.

this temporary camera is discarded with either killTempCam or reset to the active camera with another call to setTempCam(). The temporary camera overrides the existing camera setup

Definition at line 331 of file scene.cpp.

References activeCam, cameras, and tempCam.

{
      //If a temporary camera is not set, set one.
      //if it is set, update it from the active camera
      if(!tempCam)
            tempCam =cameras[activeCam]->clone();
      else
            *tempCam=*cameras[activeCam];
}


Generated by  Doxygen 1.6.0   Back to index