You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/components/resource/resourcesystem.cpp

37 lines
773 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()));
}
ResourceSystem::~ResourceSystem()
{
// this has to be defined in the .cpp file as we can't delete incomplete types
}
SceneManager* ResourceSystem::getSceneManager()
{
return mSceneManager.get();
}
TextureManager* ResourceSystem::getTextureManager()
{
return mTextureManager.get();
}
const VFS::Manager* ResourceSystem::getVFS() const
{
return mVFS;
}
}