mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 17:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			700 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			700 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_TERRAIN_TEXTUREMANAGER_H
 | |
| #define OPENMW_COMPONENTS_TERRAIN_TEXTUREMANAGER_H
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| #include <components/resource/resourcemanager.hpp>
 | |
| 
 | |
| namespace Resource
 | |
| {
 | |
|     class SceneManager;
 | |
| }
 | |
| 
 | |
| namespace osg
 | |
| {
 | |
|     class Texture2D;
 | |
| }
 | |
| 
 | |
| namespace Terrain
 | |
| {
 | |
| 
 | |
|     class TextureManager : public Resource::ResourceManager
 | |
|     {
 | |
|     public:
 | |
|         TextureManager(Resource::SceneManager* sceneMgr);
 | |
| 
 | |
|         void updateTextureFiltering();
 | |
| 
 | |
|         osg::ref_ptr<osg::Texture2D> getTexture(const std::string& name);
 | |
| 
 | |
|         virtual void reportStats(unsigned int frameNumber, osg::Stats* stats) const;
 | |
| 
 | |
|     private:
 | |
|         Resource::SceneManager* mSceneManager;
 | |
| 
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |