1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 12:39:53 +00:00
OpenMW/apps/openmw/mwrender/terrainstorage.hpp
Marc Zinnschlag 44020df65f made return type of ESMTerrain::Storage::getLand const
(cherry picked from commit febf611c827a257a4d4000b601f9ef413f2f8012)
2015-11-01 13:40:56 +11:00

29 lines
836 B
C++

#ifndef MWRENDER_TERRAINSTORAGE_H
#define MWRENDER_TERRAINSTORAGE_H
#include <components/esmterrain/storage.hpp>
namespace MWRender
{
/// @brief Connects the ESM Store used in OpenMW with the ESMTerrain storage.
class TerrainStorage : public ESMTerrain::Storage
{
private:
virtual const ESM::Land* getLand (int cellX, int cellY);
virtual const ESM::LandTexture* getLandTexture(int index, short plugin);
public:
///@param preload Preload all Land records at startup? If using the multithreaded terrain component, this
/// should be set to "true" in order to avoid race conditions.
TerrainStorage(bool preload);
/// Get bounds of the whole terrain in cell units
virtual void getBounds(float& minX, float& maxX, float& minY, float& maxY);
};
}
#endif