mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 06:19:55 +00:00
29 lines
768 B
C++
29 lines
768 B
C++
#ifndef OPENCS_RENDER_TERRAINSTORAGE_H
|
|
#define OPENCS_RENDER_TERRAINSTORAGE_H
|
|
|
|
#include <components/esmterrain/storage.hpp>
|
|
|
|
#include "../../model/world/data.hpp"
|
|
|
|
namespace CSVRender
|
|
{
|
|
|
|
/**
|
|
* @brief A bridge between the terrain component and OpenCS's terrain data storage.
|
|
*/
|
|
class TerrainStorage : public ESMTerrain::Storage
|
|
{
|
|
public:
|
|
TerrainStorage(const CSMWorld::Data& data);
|
|
private:
|
|
const CSMWorld::Data& mData;
|
|
|
|
virtual osg::ref_ptr<const ESMTerrain::LandObject> getLand (int cellX, int cellY) override;
|
|
virtual const ESM::LandTexture* getLandTexture(int index, short plugin) override;
|
|
|
|
virtual void getBounds(float& minX, float& maxX, float& minY, float& maxY) override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|