Changeset 2907 for code/branches/questsystem5/src/orxonox/tools
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/tools/BillboardSet.cc
r2662 r2907 37 37 #include <OgreBillboard.h> 38 38 39 #include "core/ Core.h"39 #include "core/GameMode.h" 40 40 #include "util/Convert.h" 41 41 #include "util/String.h" … … 72 72 try 73 73 { 74 if ( Core::showsGraphics())74 if (GameMode::showsGraphics()) 75 75 { 76 76 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + convertToString(BillboardSet::billboardSetCounter_s++), count); … … 95 95 try 96 96 { 97 if ( Core::showsGraphics())97 if (GameMode::showsGraphics()) 98 98 { 99 99 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + convertToString(BillboardSet::billboardSetCounter_s++), count); -
code/branches/questsystem5/src/orxonox/tools/CMakeLists.txt
r2710 r2907 5 5 Shader.cc 6 6 TextureGenerator.cc 7 TimeFactorListener.cc 7 8 Timer.cc 8 9 WindowEventListener.cc -
code/branches/questsystem5/src/orxonox/tools/Mesh.cc
r2662 r2907 35 35 #include <cassert> 36 36 37 #include "core/ Core.h"37 #include "core/GameMode.h" 38 38 #include "util/Convert.h" 39 39 #include "util/String.h" … … 64 64 this->scenemanager_->destroyEntity(this->entity_); 65 65 66 if ( Core::showsGraphics())66 if (GameMode::showsGraphics()) 67 67 { 68 68 try … … 70 70 this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource); 71 71 this->entity_->setCastShadows(this->bCastShadows_); 72 73 this->entity_->setNormaliseNormals(true); 74 /* 75 Excerpt from Ogre forum: 76 "Note that the above is only for the fixed function pipeline. 77 If/when you get into shaders, you'll need to manually normalize() the normal inside the vertex or pixel shader." 78 79 I don't know exactly what this means, but I put this here if there will be problems with shaders. 80 */ 72 81 } 73 82 catch (...) -
code/branches/questsystem5/src/orxonox/tools/ParticleInterface.cc
r2662 r2907 40 40 #include <cassert> 41 41 42 #include "Graphics Engine.h"43 #include "core/ Core.h"42 #include "GraphicsManager.h" 43 #include "core/GameMode.h" 44 44 #include "core/CoreIncludes.h" 45 45 #include "util/Convert.h" … … 64 64 this->speedFactor_ = 1.0f; 65 65 66 if ( Core::showsGraphics())66 if (GameMode::showsGraphics()) 67 67 { 68 68 try … … 178 178 { 179 179 this->detaillevel_ = level; 180 if (G raphicsEngine::getInstancePtr())181 this->detailLevelChanged(Graphics Engine::getInstance().getDetailLevelParticle());180 if (GameMode::showsGraphics()) 181 this->detailLevelChanged(GraphicsManager::getInstance().getDetailLevelParticle()); 182 182 } 183 183 -
code/branches/questsystem5/src/orxonox/tools/ParticleInterface.h
r2662 r2907 37 37 #include "core/OrxonoxClass.h" 38 38 #include "util/Math.h" 39 #include " gamestates/GSRoot.h"39 #include "tools/TimeFactorListener.h" 40 40 41 41 #define getAllEmitters() \ -
code/branches/questsystem5/src/orxonox/tools/Shader.cc
r2662 r2907 36 36 #include <OgrePlugin.h> 37 37 38 #include "core/ Core.h"38 #include "core/GameMode.h" 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/Executor.h" 41 #include "Graphics Engine.h"41 #include "GraphicsManager.h" 42 42 #include "util/Exception.h" 43 43 … … 59 59 this->compositorInstance_ = 0; 60 60 this->bVisible_ = true; 61 this->bLoadCompositor_ = Core::showsGraphics() && GraphicsEngine::getInstancePtr();61 this->bLoadCompositor_ = GameMode::showsGraphics(); 62 62 this->bViewportInitialized_ = false; 63 63 this->compositor_ = ""; … … 86 86 if (this->bLoadCompositor_ && this->compositorInstance_) 87 87 { 88 Ogre::Viewport* viewport = Graphics Engine::getInstance().getViewport();88 Ogre::Viewport* viewport = GraphicsManager::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 Engine::getInstance().getViewport();116 Ogre::Viewport* viewport = GraphicsManager::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 (! Core::showsGraphics() || !Shader::bLoadedCgPlugin_s)248 if (!GameMode::showsGraphics() || !Shader::bLoadedCgPlugin_s) 249 249 return 0; 250 250 -
code/branches/questsystem5/src/orxonox/tools/Timer.h
r2662 r2907 64 64 #include "core/Executor.h" 65 65 #include "core/OrxonoxClass.h" 66 #include " gamestates/GSRoot.h"66 #include "tools/TimeFactorListener.h" 67 67 68 68 namespace orxonox -
code/branches/questsystem5/src/orxonox/tools/WindowEventListener.h
r2662 r2907 49 49 50 50 /** Window has resized */ 51 virtual void windowResized( int newWidth,int newHeight) { }51 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) { } 52 52 53 53 /** Window has lost/gained focus */
Note: See TracChangeset
for help on using the changeset viewer.