|
| Terrain (GraphicsManager *manager, const std::string &heightmap, const double size, double inputScale, uint16_t vertices, const std::vector< std::tuple< double, std::string, std::string, double, double >> &layers, int64_t minX, int64_t minY, int64_t maxX, int64_t maxY) |
| Creates a new Terrain Creates a new Ogre terrain by using Ogre's TerrainGroup object with a heightmap Thereby passing a filename and calling Ogre's loadAllTerrains Then configuring. More...
|
|
| Terrain (GraphicsManager *manager, const std::vector< std::vector< double >> &heightdata, const double size, double inputScale, uint16_t vertices, const std::vector< std::tuple< double, std::string, std::string, double, double >> &layers, int64_t minX, int64_t minY, int64_t maxX, int64_t maxY) |
| Creates a new Terrain Creates a new Ogre terrain by using Ogre's TerrainGroup object with heightdata Thereby passing a filename and calling Ogre's loadAllTerrains Then configuring. More...
|
|
| ~Terrain () |
| Terrain::~Terrain() Calls Ogre's terrain object delete functions. More...
|
|
void | defineTerrainHeightmap (const int64_t x, const int64_t y) |
| Configures Ogre Terrain using heightmap. More...
|
|
void | defineTerrainHeightdata (const int64_t x, const int64_t y) |
| Configures Ogre Terrain using heightdata. More...
|
|
void | configureTerrainDefaults () |
| Terrain::configureTerrainDefaults() Configures Ogre Terrain using default values. More...
|
|
void | getTerrainImage (const bool flipX, const bool flipY, Ogre::Image &img) |
| Terrain::getTerrainImage(const bool flipX, const bool flipY, Ogre::Image & img) loads an Ogre terain image and flips it depending on flipX and flipY params. More...
|
|
void | initBlendMaps (Ogre::Terrain *terrain) |
|
Ogre::TerrainGroup * | getTerrainGroup () const |
| Returns a pointer to the TerrainGroup of the graphics library Returns a pointer to the TerrainGroup of the graphics library. More...
|
|
Ogre::TerrainGlobalOptions * | getTerrainGlobalOptions () const |
| Returns a pointer to the TerrainGlobalsOptions of the graphics library Returns a pointer to the TerrainGlobalOptions of the graphics library. More...
|
|
void | setHeightAtPosition (uint64_t x, uint64_t z, double height) |
| sets height at position More...
|
|
void | saveCollisionShape (const std::string &outFile) |
| saves collision shape as bullet collisionshape to given file More...
|
|
bool | isDirty () const |
|
void | update () |
|
Saves all Terrain-specific things.
Definition at line 52 of file Terrain.h.