18 #ifndef GZ_RENDERING_OGRE_OGREHEIGHTMAP_HH_
19 #define GZ_RENDERING_OGRE_OGREHEIGHTMAP_HH_
34 #pragma warning(disable:4275)
41 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
44 class OgreHeightmapPrivate;
57 public:
virtual void Init()
override;
60 public:
virtual void PreRender()
override;
64 public:
virtual Ogre::MovableObject *
OgreObject()
const override;
75 public:
virtual void SetMaterial(
MaterialPtr _material,
bool _unique)
80 private:
void ConfigureTerrainDefaults();
87 private:
bool PrepareTerrain(
const std::string &_terrainDirPath);
96 private:
void UpdateTerrainHash(
const std::string &_hash,
109 private:
void DefineTerrain(
int _x,
int _y);
115 private:
void CreateMaterial();
119 private:
bool InitBlendMaps(Ogre::Terrain *_terrain);
123 private:
void SetupShadows(
bool _enabled);