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 OPENCS_RENDER_TERRAINSTORAGE_H
2 #define OPENCS_RENDER_TERRAINSTORAGE_H
3 
5 
6 #include "../../model/world/data.hpp"
7 
8 namespace CSVRender
9 {
10 
15  {
16  public:
17  TerrainStorage(const CSMWorld::Data& data);
18  private:
20 
21  virtual const ESM::Land* getLand (int cellX, int cellY);
22  virtual const ESM::LandTexture* getLandTexture(int index, short plugin);
23 
24  virtual void getBounds(float& minX, float& maxX, float& minY, float& maxY);
25  };
26 
27 }
28 
29 #endif
const CSMWorld::Data & mData
Definition: terrainstorage.hpp:19
A bridge between the terrain component and OpenCS's terrain data storage.
Definition: terrainstorage.hpp:14
Definition: loadltex.hpp:28
Definition: loadland.hpp:20
virtual void getBounds(float &minX, float &maxX, float &minY, float &maxY)
Get bounds of the whole terrain in cell units.
Definition: terrainstorage.cpp:43
virtual const ESM::Land * getLand(int cellX, int cellY)
Definition: terrainstorage.cpp:12
virtual const ESM::LandTexture * getLandTexture(int index, short plugin)
Definition: terrainstorage.cpp:29
Feeds data from ESM terrain records (ESM::Land, ESM::LandTexture) into the terrain component...
Definition: storage.hpp:21
TerrainStorage(const CSMWorld::Data &data)
Definition: terrainstorage.cpp:6
Definition: data.hpp:77