Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 9:33:09 AM (14 years ago)
Author:
rgrieder
Message:

Removed some tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/designtools/ScreenshotManager.cc

    r7015 r7039  
    2525        mDisableOverlays  = overlayFlag;
    2626        //get current window size
    27         mWindowWidth    = pRenderWindow->getWidth();
    28         mWindowHeight    = pRenderWindow->getHeight();
     27        mWindowWidth  = pRenderWindow->getWidth();
     28        mWindowHeight  = pRenderWindow->getHeight();
    2929        //create temporary texture
    3030        mTempTex = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex",
     
    6464        //set the viewport settings
    6565        Ogre::Viewport *vp = mRT->getViewport(0);
    66         vp->setClearEveryFrame(true);   
     66        vp->setClearEveryFrame(true); 
    6767        vp->setOverlaysEnabled(false);
    6868
     
    7878            // Simple case where the contents of the screen are taken directly
    7979            // Also used when an invalid value is passed within gridSize (zero or negative grid size)
    80             mRT->update();              //render
     80            mRT->update();    //render
    8181
    8282            //write the file on the Harddisk
     
    9191           
    9292            // compute the Stepsize for the drid
    93             Ogre::Real frustumGridStepHorizontal        = (originalFrustumRight * 2) / mGridSize;
    94             Ogre::Real frustumGridStepVertical  = (originalFrustumTop * 2) / mGridSize;
     93            Ogre::Real frustumGridStepHorizontal  = (originalFrustumRight * 2) / mGridSize;
     94            Ogre::Real frustumGridStepVertical  = (originalFrustumTop * 2) / mGridSize;
    9595
    9696            // process each grid
     
    103103                // Shoggoth frustum extents setting
    104104                // compute the new frustum extents
    105                 frustumLeft             = originalFrustumLeft + frustumGridStepHorizontal * x;
    106                 frustumRight    = frustumLeft + frustumGridStepHorizontal;
    107                 frustumTop              = originalFrustumTop - frustumGridStepVertical * y;
    108                 frustumBottom   = frustumTop - frustumGridStepVertical;
     105                frustumLeft    = originalFrustumLeft + frustumGridStepHorizontal * x;
     106                frustumRight  = frustumLeft + frustumGridStepHorizontal;
     107                frustumTop    = originalFrustumTop - frustumGridStepVertical * y;
     108                frustumBottom  = frustumTop - frustumGridStepVertical;
    109109               
    110110                // set the frustum extents value to the camera
     
    113113                // ignore time duration between frames
    114114                Ogre::Root::getSingletonPtr()->clearEventTimes();
    115                 mRT->update();          //render
     115                mRT->update();    //render
    116116               
    117117                //define the current
Note: See TracChangeset for help on using the changeset viewer.