forked from mirror/openmw-tes3mp
26 lines
528 B
C++
26 lines
528 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();
|
|
}
|
|
|
|
const VFS::Manager* ResourceSystem::getVFS() const
|
|
{
|
|
return mVFS;
|
|
}
|
|
|
|
}
|