Changeset 2908 for code/branches/questsystem5/src/orxonox/tools
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/tools/BillboardSet.cc
r2907 r2908 37 37 #include <OgreBillboard.h> 38 38 39 #include "core/ GameMode.h"39 #include "core/Core.h" 40 40 #include "util/Convert.h" 41 41 #include "util/String.h" … … 72 72 try 73 73 { 74 if ( GameMode::showsGraphics())74 if (Core::showsGraphics()) 75 75 { 76 76 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + convertToString(BillboardSet::billboardSetCounter_s++), count); … … 95 95 try 96 96 { 97 if ( GameMode::showsGraphics())97 if (Core::showsGraphics()) 98 98 { 99 99 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + convertToString(BillboardSet::billboardSetCounter_s++), count); -
code/branches/questsystem5/src/orxonox/tools/CMakeLists.txt
r2907 r2908 5 5 Shader.cc 6 6 TextureGenerator.cc 7 TimeFactorListener.cc8 7 Timer.cc 9 8 WindowEventListener.cc -
code/branches/questsystem5/src/orxonox/tools/Mesh.cc
r2907 r2908 35 35 #include <cassert> 36 36 37 #include "core/ GameMode.h"37 #include "core/Core.h" 38 38 #include "util/Convert.h" 39 39 #include "util/String.h" … … 64 64 this->scenemanager_->destroyEntity(this->entity_); 65 65 66 if ( GameMode::showsGraphics())66 if (Core::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 */81 72 } 82 73 catch (...) -
code/branches/questsystem5/src/orxonox/tools/ParticleInterface.cc
r2907 r2908 40 40 #include <cassert> 41 41 42 #include "Graphics Manager.h"43 #include "core/ GameMode.h"42 #include "GraphicsEngine.h" 43 #include "core/Core.h" 44 44 #include "core/CoreIncludes.h" 45 45 #include "util/Convert.h" … … 64 64 this->speedFactor_ = 1.0f; 65 65 66 if ( GameMode::showsGraphics())66 if (Core::showsGraphics()) 67 67 { 68 68 try … … 178 178 { 179 179 this->detaillevel_ = level; 180 if (G ameMode::showsGraphics())181 this->detailLevelChanged(Graphics Manager::getInstance().getDetailLevelParticle());180 if (GraphicsEngine::getInstancePtr()) 181 this->detailLevelChanged(GraphicsEngine::getInstance().getDetailLevelParticle()); 182 182 } 183 183 -
code/branches/questsystem5/src/orxonox/tools/ParticleInterface.h
r2907 r2908 37 37 #include "core/OrxonoxClass.h" 38 38 #include "util/Math.h" 39 #include " tools/TimeFactorListener.h"39 #include "gamestates/GSRoot.h" 40 40 41 41 #define getAllEmitters() \ -
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 -
code/branches/questsystem5/src/orxonox/tools/Timer.h
r2907 r2908 64 64 #include "core/Executor.h" 65 65 #include "core/OrxonoxClass.h" 66 #include " tools/TimeFactorListener.h"66 #include "gamestates/GSRoot.h" 67 67 68 68 namespace orxonox -
code/branches/questsystem5/src/orxonox/tools/WindowEventListener.h
r2907 r2908 49 49 50 50 /** Window has resized */ 51 virtual void windowResized( unsigned int newWidth, unsignedint newHeight) { }51 virtual void windowResized(int newWidth, int newHeight) { } 52 52 53 53 /** Window has lost/gained focus */
Note: See TracChangeset
for help on using the changeset viewer.