mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 08:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			887 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			887 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_KEYFRAMEMANAGER_H
 | |
| #define OPENMW_COMPONENTS_KEYFRAMEMANAGER_H
 | |
| 
 | |
| #include <osg/ref_ptr>
 | |
| #include <string>
 | |
| 
 | |
| namespace VFS
 | |
| {
 | |
|     class Manager;
 | |
| }
 | |
| 
 | |
| namespace osgDB
 | |
| {
 | |
|     class ObjectCache;
 | |
| }
 | |
| 
 | |
| namespace NifOsg
 | |
| {
 | |
|     class KeyframeHolder;
 | |
| }
 | |
| 
 | |
| namespace Resource
 | |
| {
 | |
| 
 | |
|     /// @brief Managing of keyframe resources
 | |
|     class KeyframeManager
 | |
|     {
 | |
|     public:
 | |
|         KeyframeManager(const VFS::Manager* vfs);
 | |
|         ~KeyframeManager();
 | |
| 
 | |
|         void clearCache();
 | |
| 
 | |
|         /// Retrieve a read-only keyframe resource by name (case-insensitive).
 | |
|         /// @note This method is safe to call from any thread.
 | |
|         /// @note Throws an exception if the resource is not found.
 | |
|         osg::ref_ptr<const NifOsg::KeyframeHolder> get(const std::string& name);
 | |
| 
 | |
|     private:
 | |
|         osg::ref_ptr<osgDB::ObjectCache> mCache;
 | |
| 
 | |
|         const VFS::Manager* mVFS;
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |