OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
texturemanager.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_TERRAIN_TEXTUREMANAGER_H
2 #define OPENMW_COMPONENTS_TERRAIN_TEXTUREMANAGER_H
3 
4 #include <string>
5 
7 
8 namespace Resource
9 {
10  class SceneManager;
11 }
12 
13 namespace osg
14 {
15  class Texture2D;
16 }
17 
18 namespace Terrain
19 {
20 
22  {
23  public:
25 
27 
28  osg::ref_ptr<osg::Texture2D> getTexture(const std::string& name);
29 
30  virtual void reportStats(unsigned int frameNumber, osg::Stats* stats) const;
31 
32  private:
34 
35  };
36 
37 }
38 
39 #endif
Resource::SceneManager * mSceneManager
Definition: texturemanager.hpp:33
virtual void reportStats(unsigned int frameNumber, osg::Stats *stats) const
Definition: texturemanager.cpp:57
Handles loading and caching of scenes, e.g. .nif files or .osg files.
Definition: scenemanager.hpp:44
Definition: texturemanager.hpp:21
TextureManager(Resource::SceneManager *sceneMgr)
Definition: texturemanager.cpp:13
void updateTextureFiltering()
Definition: texturemanager.cpp:34
osg::ref_ptr< osg::Texture2D > getTexture(const std::string &name)
Definition: texturemanager.cpp:40
Base class for managers that require a virtual file system and object cache.
Definition: resourcemanager.hpp:23
const char * name
Definition: crashcatcher.cpp:67