forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
861 B
C++
29 lines
861 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(const VFS::Manager* vfs, bool preload);
|
|
|
|
/// Get bounds of the whole terrain in cell units
|
|
virtual void getBounds(float& minX, float& maxX, float& minY, float& maxY);
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif
|