- Timestamp:
- May 31, 2010, 9:33:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/designtools/ScreenshotManager.cc
r7015 r7039 25 25 mDisableOverlays = overlayFlag; 26 26 //get current window size 27 mWindowWidth 28 mWindowHeight 27 mWindowWidth = pRenderWindow->getWidth(); 28 mWindowHeight = pRenderWindow->getHeight(); 29 29 //create temporary texture 30 30 mTempTex = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex", … … 64 64 //set the viewport settings 65 65 Ogre::Viewport *vp = mRT->getViewport(0); 66 vp->setClearEveryFrame(true); 66 vp->setClearEveryFrame(true); 67 67 vp->setOverlaysEnabled(false); 68 68 … … 78 78 // Simple case where the contents of the screen are taken directly 79 79 // Also used when an invalid value is passed within gridSize (zero or negative grid size) 80 mRT->update(); 80 mRT->update(); //render 81 81 82 82 //write the file on the Harddisk … … 91 91 92 92 // compute the Stepsize for the drid 93 Ogre::Real frustumGridStepHorizontal 94 Ogre::Real frustumGridStepVertical 93 Ogre::Real frustumGridStepHorizontal = (originalFrustumRight * 2) / mGridSize; 94 Ogre::Real frustumGridStepVertical = (originalFrustumTop * 2) / mGridSize; 95 95 96 96 // process each grid … … 103 103 // Shoggoth frustum extents setting 104 104 // compute the new frustum extents 105 frustumLeft 106 frustumRight 107 frustumTop 108 frustumBottom 105 frustumLeft = originalFrustumLeft + frustumGridStepHorizontal * x; 106 frustumRight = frustumLeft + frustumGridStepHorizontal; 107 frustumTop = originalFrustumTop - frustumGridStepVertical * y; 108 frustumBottom = frustumTop - frustumGridStepVertical; 109 109 110 110 // set the frustum extents value to the camera … … 113 113 // ignore time duration between frames 114 114 Ogre::Root::getSingletonPtr()->clearEventTimes(); 115 mRT->update(); 115 mRT->update(); //render 116 116 117 117 //define the current
Note: See TracChangeset
for help on using the changeset viewer.