1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 06:40:09 +00:00
OpenMW/apps/openmw/mwrender/landmanager.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
723 B
C++
Raw Normal View History

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