Groups a number of TerrainZoneRenderables (tiles) into a page, which is the unit of loading / unloading. More...
#include <OgreTerrainZonePage.h>
Public Types | |
typedef vector< TerrainZoneRow > ::type | TerrainZone2D |
typedef vector < TerrainZoneRenderable * > ::type | TerrainZoneRow |
Public Member Functions | |
TerrainZonePage (unsigned short numTiles) | |
The main constructor. More... | |
virtual | ~TerrainZonePage () |
Destructor, will organise the deletion of pages. More... | |
TerrainZoneRenderable * | getTerrainZoneTile (const Vector3 &pt) |
Returns the TerrainZoneRenderable that contains the given pt. More... | |
TerrainZoneRenderable * | getTerrainZoneTile (unsigned short x, unsigned short z) |
Returns the TerrainZoneRenderable Tile with given index. More... | |
void | linkNeighbours (void) |
After TerrainZoneRenderables have been populated, this method adds the neighbour links. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
void | setRenderQueue (uint8 qid) |
Sets the render queue group which the tiles should be rendered in. More... | |
Public Attributes | |
SceneNode * | pageSceneNode |
The scene node to which all the tiles for this page are attached. More... | |
TerrainZone2D | tiles |
2-dimensional vector of tiles, pre-allocated to the correct size More... | |
unsigned short | tilesPerPage |
The number of tiles across a page. More... | |
Groups a number of TerrainZoneRenderables (tiles) into a page, which is the unit of loading / unloading.
Definition at line 59 of file OgreTerrainZonePage.h.
typedef vector< TerrainZoneRow >::type Ogre::TerrainZonePage::TerrainZone2D |
Definition at line 63 of file OgreTerrainZonePage.h.
typedef vector< TerrainZoneRenderable * >::type Ogre::TerrainZonePage::TerrainZoneRow |
Definition at line 62 of file OgreTerrainZonePage.h.
Ogre::TerrainZonePage::TerrainZonePage | ( | unsigned short | numTiles | ) |
The main constructor.
numTiles | The number of terrain tiles (TerrainZoneRenderable) across (and down) a page |
|
virtual |
Destructor, will organise the deletion of pages.
TerrainZoneRenderable* Ogre::TerrainZonePage::getTerrainZoneTile | ( | const Vector3 & | pt | ) |
Returns the TerrainZoneRenderable that contains the given pt.
If no tile exists at the point, it returns 0;
|
inline |
Returns the TerrainZoneRenderable Tile with given index.
Definition at line 95 of file OgreTerrainZonePage.h.
void Ogre::TerrainZonePage::linkNeighbours | ( | void | ) |
After TerrainZoneRenderables have been populated, this method adds the neighbour links.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void Ogre::TerrainZonePage::setRenderQueue | ( | uint8 | qid | ) |
Sets the render queue group which the tiles should be rendered in.
SceneNode* Ogre::TerrainZonePage::pageSceneNode |
The scene node to which all the tiles for this page are attached.
Definition at line 70 of file OgreTerrainZonePage.h.
TerrainZone2D Ogre::TerrainZonePage::tiles |
2-dimensional vector of tiles, pre-allocated to the correct size
Definition at line 66 of file OgreTerrainZonePage.h.
unsigned short Ogre::TerrainZonePage::tilesPerPage |
The number of tiles across a page.
Definition at line 68 of file OgreTerrainZonePage.h.