1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/openmw/mwrender/terrain.hpp

32 lines
689 B
C++

#ifndef _GAME_RENDER_TERRAIN_H
#define _GAME_RENDER_TERRAIN_H
#include "../mwworld/ptr.hpp"
namespace Ogre{
class SceneManager;
class TerrainGroup;
class TerrainGlobalOptions;
}
namespace MWRender{
/**
* Implements the Morrowind terrain using the Ogre Terrain Component
*/
class TerrainManager{
public:
TerrainManager(Ogre::SceneManager*);
virtual ~TerrainManager();
void cellAdded(MWWorld::Ptr::CellStore* store);
void cellRemoved(MWWorld::Ptr::CellStore* store);
private:
Ogre::TerrainGlobalOptions* mTerrainGlobals;
Ogre::TerrainGroup* mTerrainGroup;
};
}
#endif // _GAME_RENDER_TERRAIN_H