OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainstorage.hpp
Go to the documentation of this file.
1 #ifndef MWRENDER_TERRAINSTORAGE_H
2 #define MWRENDER_TERRAINSTORAGE_H
3 
5 
6 namespace MWRender
7 {
8 
11  {
12  private:
13  virtual const ESM::Land* getLand (int cellX, int cellY);
14  virtual const ESM::LandTexture* getLandTexture(int index, short plugin);
15  public:
16 
17  TerrainStorage(const VFS::Manager* vfs, const std::string& normalMapPattern = "", const std::string& normalHeightMapPatteern = "", bool autoUseNormalMaps = false, const std::string& specularMapPattern = "", bool autoUseSpecularMaps = false);
18 
20  virtual void getBounds(float& minX, float& maxX, float& minY, float& maxY);
21  };
22 
23 }
24 
25 
26 #endif
virtual const ESM::Land * getLand(int cellX, int cellY)
Definition: terrainstorage.cpp:42
Definition: loadltex.hpp:28
Definition: loadland.hpp:20
Connects the ESM Store used in OpenMW with the ESMTerrain storage.
Definition: terrainstorage.hpp:10
Feeds data from ESM terrain records (ESM::Land, ESM::LandTexture) into the terrain component...
Definition: storage.hpp:21
virtual const ESM::LandTexture * getLandTexture(int index, short plugin)
Definition: terrainstorage.cpp:59
TerrainStorage(const VFS::Manager *vfs, const std::string &normalMapPattern="", const std::string &normalHeightMapPatteern="", bool autoUseNormalMaps=false, const std::string &specularMapPattern="", bool autoUseSpecularMaps=false)
Definition: terrainstorage.cpp:12
virtual void getBounds(float &minX, float &maxX, float &minY, float &maxY)
Get bounds of the whole terrain in cell units.
Definition: terrainstorage.cpp:17
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20