diff --git a/apps/openmw/mwrender/rendering_manager.cpp b/apps/openmw/mwrender/rendering_manager.cpp index e648a6451..afa63fc3e 100644 --- a/apps/openmw/mwrender/rendering_manager.cpp +++ b/apps/openmw/mwrender/rendering_manager.cpp @@ -4,10 +4,9 @@ namespace MWRender { -RenderingManager::RenderingManager (SkyManager *skyManager) : - mSkyManager(skyManager) +RenderingManager::RenderingManager (Ogre::RenderWindow* window, Ogre::Camera* cam, const boost::filesystem2::path& resDir) { - + mSkyManager = MWRender::SkyManager::create(window, cam, resDir); } RenderingManager::~RenderingManager () diff --git a/apps/openmw/mwrender/rendering_manager.hpp b/apps/openmw/mwrender/rendering_manager.hpp index d456716d3..ac14ee389 100644 --- a/apps/openmw/mwrender/rendering_manager.hpp +++ b/apps/openmw/mwrender/rendering_manager.hpp @@ -7,13 +7,14 @@ #include "../mwworld/ptr.hpp" #include #include +#include namespace MWRender { class RenderingManager { public: - RenderingManager(SkyManager *skyManager); + RenderingManager(Ogre::RenderWindow* window, Ogre::Camera* cam, const boost::filesystem2::path& resDir); ~RenderingManager(); void removeCell (MWWorld::Ptr::CellStore *store); // TODO do we want this? diff --git a/apps/openmw/mwworld/world.cpp b/apps/openmw/mwworld/world.cpp index 78827f150..cee73a433 100644 --- a/apps/openmw/mwworld/world.cpp +++ b/apps/openmw/mwworld/world.cpp @@ -207,9 +207,7 @@ namespace MWWorld mPhysEngine = physEng; mWorldScene = new Scene(environment, this, mScene, mPhysics); - mRenderingManager = new MWRender::RenderingManager( - MWRender::SkyManager::create(renderer.getWindow(), mScene.getCamera(), resDir) - ); + mRenderingManager = new MWRender::RenderingManager(renderer.getWindow(), mScene.getCamera(), resDir); } World::~World()