Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2008, 5:43:49 PM (16 years ago)
Author:
rgrieder
Message:

applied changes to network branch.
start merging from this revision next time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/GraphicsEngine.cc

    r1507 r1512  
    399399  }
    400400
    401   //HACK!!
    402   /*SetConsoleCommandShortcut(GraphicsEngine, CompositorBloomOn).setAccessLevel(AccessLevel::User);
    403   SetConsoleCommandShortcut(GraphicsEngine, CompositorMotionBlurOn).setAccessLevel(AccessLevel::User);
    404   SetConsoleCommandShortcut(GraphicsEngine, CompositorBloomOff).setAccessLevel(AccessLevel::User);
    405   SetConsoleCommandShortcut(GraphicsEngine, CompositorMotionBlurOff).setAccessLevel(AccessLevel::User);
    406   void GraphicsEngine::CompositorBloomOn()
    407   {
    408     Ogre::SceneManager* mSceneMgr = GraphicsEngine::getSingleton().getSceneManager();
    409     Ogre::Viewport* mViewport = mSceneMgr->getCurrentViewport();
    410     Ogre::CompositorManager::getSingleton().addCompositor(mViewport, "Bloom");
    411     Ogre::CompositorManager::getSingleton().setCompositorEnabled(mViewport, "Bloom", true);
    412   }
    413   void GraphicsEngine::CompositorBloomOff()
    414   {
    415     Ogre::SceneManager* mSceneMgr = GraphicsEngine::getSingleton().getSceneManager();
    416     Ogre::Viewport* mViewport = mSceneMgr->getCurrentViewport();
    417     Ogre::CompositorManager::getSingleton().setCompositorEnabled(mViewport, "Bloom", false);
    418   }
    419 
    420   void GraphicsEngine::CompositorMotionBlurOn()
    421   {
    422     Ogre::SceneManager* mSceneMgr = GraphicsEngine::getSingleton().getSceneManager();
    423     Ogre::Viewport* mViewport = mSceneMgr->getCurrentViewport();
    424     Ogre::CompositorManager::getSingleton().addCompositor(mViewport, "MotionBlur");
    425     Ogre::CompositorManager::getSingleton().setCompositorEnabled(mViewport, "MotionBlur", true);
    426   }
    427   void GraphicsEngine::CompositorMotionBlurOff()
    428   {
    429     Ogre::SceneManager* mSceneMgr = GraphicsEngine::getSingleton().getSceneManager();
    430     Ogre::Viewport* mViewport = mSceneMgr->getCurrentViewport();
    431     Ogre::CompositorManager::getSingleton().setCompositorEnabled(mViewport, "MotionBlur", false);
    432   }*/
    433401}
Note: See TracChangeset for help on using the changeset viewer.