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>
|
|
|
|
|
2023-05-05 08:31:06 +00:00
|
|
|
#include <components/esm/util.hpp>
|
2023-08-06 10:53:29 +00:00
|
|
|
#include <components/esmterrain/storage.hpp>
|
2017-03-06 18:04:17 +00:00
|
|
|
#include <components/resource/resourcemanager.hpp>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Land;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
|
|
|
|
2023-05-14 22:34:17 +00:00
|
|
|
class LandManager : public Resource::GenericResourceManager<ESM::ExteriorCellLocation>
|
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.
|
2023-05-12 11:24:59 +00:00
|
|
|
osg::ref_ptr<ESMTerrain::LandObject> getLand(ESM::ExteriorCellLocation cellIndex);
|
2017-03-06 18:04:17 +00:00
|
|
|
|
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
|