2020-12-28 17:11:58 +00:00
|
|
|
#ifndef OPENMW_MWRENDER_LANDMANAGER_H
|
|
|
|
#define OPENMW_MWRENDER_LANDMANAGER_H
|
2017-03-06 18:04:17 +00:00
|
|
|
|
|
|
|
#include <osg/Object>
|
|
|
|
|
2022-01-22 22:52:08 +00:00
|
|
|
#include <components/esm3terrain/storage.hpp>
|
2017-03-06 18:04:17 +00:00
|
|
|
#include <components/resource/resourcemanager.hpp>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Land;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
|
|
|
|
2019-03-13 07:15:58 +00:00
|
|
|
class LandManager : public Resource::GenericResourceManager<std::pair<int, int>>
|
2017-03-06 18:04:17 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
LandManager(int loadFlags);
|
|
|
|
|
2018-10-09 06:21:12 +00:00
|
|
|
/// @note Will return nullptr if not found.
|
2017-03-06 18:04:17 +00:00
|
|
|
osg::ref_ptr<ESMTerrain::LandObject> getLand(int x, int y);
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void reportStats(unsigned int frameNumber, osg::Stats* stats) const override;
|
2017-03-06 18:04:17 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
int mLoadFlags;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|