1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 13:53:53 +00:00
openmw/components/resource/resourcesystem.cpp

32 lines
635 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();
}
2015-04-16 23:23:37 +00:00
TextureManager* ResourceSystem::getTextureManager()
{
return mTextureManager.get();
}
2015-03-26 17:02:51 +00:00
const VFS::Manager* ResourceSystem::getVFS() const
{
return mVFS;
}
}