This class is the 'core' class for paging terrain, that will integrate with the larger paging system and provide the appropriate utility classes required.
More...
#include <OgreTerrainPaging.h>
This class is the 'core' class for paging terrain, that will integrate with the larger paging system and provide the appropriate utility classes required.
- Because PagedWorld and all attached classes have to be loadable from a stream, most of the functionality is provided behind generalised interfaces. However, for constructing a paged terrain in code you can use utility methods on this class. This procedurally created data can then be saved in a generic form which will reconstruct on loading. Alternatively you can use the generic methods and simply cast based on your prior knowledge of the types (or checking the type names exposed).
◆ TerrainPaging()
Ogre::TerrainPaging::TerrainPaging |
( |
PageManager * |
pageMgr | ) |
|
Constructor.
- Parameters
-
pageMgr | The PageManager which this class should attach to. |
◆ ~TerrainPaging()
virtual Ogre::TerrainPaging::~TerrainPaging |
( |
| ) |
|
|
virtual |
◆ createWorldSection()
Create a TerrainPagedWorldSection.
- Parameters
-
world | The PagedWorld that is to contain this section |
terrainGroup | A TerrainGroup which must have been pre-configured before this call, to at least set the origin, the world size, and the file name convention. |
loadRadius | The radius from the camera at which terrain pages will be loaded |
holdRadius | The radius from the camera at which terrain pages will be held in memory but not loaded if they're not already. This must be larger than loadRadius and is used to minimise thrashing if the camera goes backwards and forwards at the loading border. |
minX,minY,maxX,maxY | The min/max page indexes that the world will try to load pages for, as measured from the origin page at (0,0) by a signed index. The default is -10 to 10 in each direction or 20x20 pages. |
sectionName | An optional name to give the section (if none is provided, one will be generated) |
loadingIntervalMs | An optional interval in milliseconds to wait between loading single pages. The default is 900 ms. |
- Returns
- The world section which is already attached to and owned by the world you passed in. There is no 'destroy' method because you destroy via the PagedWorld, this is just a helper function.
The documentation for this class was generated from the following file: