1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:53:52 +00:00
openmw/components/resource/resourcesystem.cpp
2015-04-17 01:23:37 +02:00

31 lines
635 B
C++

#include "resourcesystem.hpp"
#include "scenemanager.hpp"
#include "texturemanager.hpp"
namespace Resource
{
ResourceSystem::ResourceSystem(const VFS::Manager *vfs)
: mVFS(vfs)
{
mTextureManager.reset(new TextureManager(vfs));
mSceneManager.reset(new SceneManager(vfs, mTextureManager.get()));
}
SceneManager* ResourceSystem::getSceneManager()
{
return mSceneManager.get();
}
TextureManager* ResourceSystem::getTextureManager()
{
return mTextureManager.get();
}
const VFS::Manager* ResourceSystem::getVFS() const
{
return mVFS;
}
}