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/components/resource/resourcesystem.hpp

40 lines
914 B
C++

#ifndef OPENMW_COMPONENTS_RESOURCE_RESOURCESYSTEM_H
#define OPENMW_COMPONENTS_RESOURCE_RESOURCESYSTEM_H
#include <memory>
namespace VFS
{
class Manager;
}
namespace Resource
{
class SceneManager;
class TextureManager;
/// @brief Wrapper class that constructs and provides access to the various resource subsystems.
/// @par Resource subsystems can be used with multiple OpenGL contexts, just like the OSG equivalents, but
/// are built around the use of a single virtual file system.
class ResourceSystem
{
public:
ResourceSystem(const VFS::Manager* vfs);
SceneManager* getSceneManager();
TextureManager* getTextureManager();
const VFS::Manager* getVFS() const;
private:
std::auto_ptr<SceneManager> mSceneManager;
std::auto_ptr<TextureManager> mTextureManager;
const VFS::Manager* mVFS;
};
}
#endif