mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 02:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			874 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			874 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_RESOURCE_NIFFILEMANAGER_H
 | 
						|
#define OPENMW_COMPONENTS_RESOURCE_NIFFILEMANAGER_H
 | 
						|
 | 
						|
#include <osg/ref_ptr>
 | 
						|
 | 
						|
#include <components/nif/niffile.hpp>
 | 
						|
 | 
						|
#include "resourcemanager.hpp"
 | 
						|
 | 
						|
namespace Resource
 | 
						|
{
 | 
						|
 | 
						|
    /// @brief Handles caching of NIFFiles.
 | 
						|
    /// @note May be used from any thread.
 | 
						|
    class NifFileManager : public ResourceManager
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        NifFileManager(const VFS::Manager* vfs);
 | 
						|
        ~NifFileManager();
 | 
						|
 | 
						|
        /// Retrieve a NIF file from the cache, or load it from the VFS if not cached yet.
 | 
						|
        /// @note For performance reasons the NifFileManager does not handle case folding, needs
 | 
						|
        /// to be done in advance by other managers accessing the NifFileManager.
 | 
						|
        Nif::NIFFilePtr get(const std::string& name);
 | 
						|
 | 
						|
        void reportStats(unsigned int frameNumber, osg::Stats *stats) const;
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |