openmw/components/resource/resourcesystem.cpp

27 lines
528 B
C++
Raw Normal View History

2015-03-26 18:02:51 +01:00
#include "resourcesystem.hpp"
#include "scenemanager.hpp"
#include "texturemanager.hpp"
2015-03-26 18:02:51 +01:00
namespace Resource
{
ResourceSystem::ResourceSystem(const VFS::Manager *vfs)
: mVFS(vfs)
{
mTextureManager.reset(new TextureManager(vfs));
mSceneManager.reset(new SceneManager(vfs, mTextureManager.get()));
2015-03-26 18:02:51 +01:00
}
SceneManager* ResourceSystem::getSceneManager()
{
return mSceneManager.get();
}
const VFS::Manager* ResourceSystem::getVFS() const
{
return mVFS;
}
}