mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 22:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			790 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			790 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_KEYFRAMEMANAGER_H
 | |
| #define OPENMW_COMPONENTS_KEYFRAMEMANAGER_H
 | |
| 
 | |
| #include <osg/ref_ptr>
 | |
| #include <string>
 | |
| 
 | |
| #include <components/nifosg/nifloader.hpp>
 | |
| 
 | |
| #include "resourcemanager.hpp"
 | |
| 
 | |
| namespace Resource
 | |
| {
 | |
| 
 | |
|     /// @brief Managing of keyframe resources
 | |
|     /// @note May be used from any thread.
 | |
|     class KeyframeManager : public ResourceManager
 | |
|     {
 | |
|     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);
 | |
| 
 | |
|         void reportStats(unsigned int frameNumber, osg::Stats* stats) const;
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |