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