1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 23:53:50 +00:00
openmw-tes3mp/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;
}
}