Changeset 2908 for code/branches/questsystem5/src/orxonox/tools/Shader.cc
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/tools/Shader.cc
r2907 r2908 36 36 #include <OgrePlugin.h> 37 37 38 #include "core/ GameMode.h"38 #include "core/Core.h" 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/Executor.h" 41 #include "Graphics Manager.h"41 #include "GraphicsEngine.h" 42 42 #include "util/Exception.h" 43 43 … … 59 59 this->compositorInstance_ = 0; 60 60 this->bVisible_ = true; 61 this->bLoadCompositor_ = GameMode::showsGraphics();61 this->bLoadCompositor_ = Core::showsGraphics() && GraphicsEngine::getInstancePtr(); 62 62 this->bViewportInitialized_ = false; 63 63 this->compositor_ = ""; … … 86 86 if (this->bLoadCompositor_ && this->compositorInstance_) 87 87 { 88 Ogre::Viewport* viewport = Graphics Manager::getInstance().getViewport();88 Ogre::Viewport* viewport = GraphicsEngine::getInstance().getViewport(); 89 89 assert(viewport); 90 90 Ogre::CompositorManager::getSingleton().removeCompositor(viewport, this->compositor_); … … 114 114 if (this->bLoadCompositor_) 115 115 { 116 Ogre::Viewport* viewport = Graphics Manager::getInstance().getViewport();116 Ogre::Viewport* viewport = GraphicsEngine::getInstance().getViewport(); 117 117 assert(viewport); 118 118 if (this->oldcompositor_ != "") … … 246 246 Shader::ParameterPointer* Shader::getParameterPointer(const std::string& material, size_t technique, size_t pass, const std::string& parameter) 247 247 { 248 if (! GameMode::showsGraphics() || !Shader::bLoadedCgPlugin_s)248 if (!Core::showsGraphics() || !Shader::bLoadedCgPlugin_s) 249 249 return 0; 250 250
Note: See TracChangeset
for help on using the changeset viewer.