mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
34 lines
659 B
C++
34 lines
659 B
C++
#ifndef OPENMW_MWRENDER_LANDMANAGER_H
|
|
#define OPENMW_MWRENDER_LANDMANAGER_H
|
|
|
|
#include <osg/Object>
|
|
|
|
#include <components/esm3terrain/storage.hpp>
|
|
#include <components/resource/resourcemanager.hpp>
|
|
|
|
namespace ESM
|
|
{
|
|
struct Land;
|
|
}
|
|
|
|
namespace MWRender
|
|
{
|
|
|
|
class LandManager : public Resource::GenericResourceManager<std::pair<int, int>>
|
|
{
|
|
public:
|
|
LandManager(int loadFlags);
|
|
|
|
/// @note Will return nullptr if not found.
|
|
osg::ref_ptr<ESMTerrain::LandObject> getLand(int x, int y);
|
|
|
|
void reportStats(unsigned int frameNumber, osg::Stats* stats) const override;
|
|
|
|
private:
|
|
int mLoadFlags;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|