2015-12-12 17:52:06 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_KEYFRAMEMANAGER_H
|
|
|
|
#define OPENMW_COMPONENTS_KEYFRAMEMANAGER_H
|
|
|
|
|
|
|
|
#include <osg/ref_ptr>
|
|
|
|
#include <string>
|
|
|
|
|
2016-02-06 15:57:54 +00:00
|
|
|
#include "resourcemanager.hpp"
|
2015-12-12 17:52:06 +00:00
|
|
|
|
|
|
|
namespace NifOsg
|
|
|
|
{
|
|
|
|
class KeyframeHolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Resource
|
|
|
|
{
|
|
|
|
|
|
|
|
/// @brief Managing of keyframe resources
|
2016-02-05 23:15:12 +00:00
|
|
|
/// @note May be used from any thread.
|
2016-02-06 15:57:54 +00:00
|
|
|
class KeyframeManager : public ResourceManager
|
2015-12-12 17:52:06 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
KeyframeManager(const VFS::Manager* vfs);
|
|
|
|
~KeyframeManager();
|
|
|
|
|
|
|
|
/// Retrieve a read-only keyframe resource by name (case-insensitive).
|
|
|
|
/// @note Throws an exception if the resource is not found.
|
|
|
|
osg::ref_ptr<const NifOsg::KeyframeHolder> get(const std::string& name);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|