1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/components/resource/resourcesystem.cpp

27 lines
528 B
C++
Raw Normal View History

2015-03-26 17:02:51 +00:00
#include "resourcesystem.hpp"
#include "scenemanager.hpp"
#include "texturemanager.hpp"
2015-03-26 17:02:51 +00: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 17:02:51 +00:00
}
SceneManager* ResourceSystem::getSceneManager()
{
return mSceneManager.get();
}
const VFS::Manager* ResourceSystem::getVFS() const
{
return mVFS;
}
}