OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Page strategy which loads new pages based on a regular 2D grid. More...
#include <OgreGrid2DPageStrategy.h>
Page strategy which loads new pages based on a regular 2D grid.
The grid can be up to 65536 x 65536 cells in size. PageIDs are generated like this: (row * 65536) + col. The grid is centred around the grid origin, such that the boundaries of the cell around that origin are [-CellSize/2, CellSize/2)
Ogre::Grid2DPageStrategy::Grid2DPageStrategy | ( | PageManager * | manager | ) |
Ogre::Grid2DPageStrategy::~Grid2DPageStrategy | ( | ) |
|
overridevirtual |
Called when a camera is used for any kind of rendering.
This is probably the primary way in which the strategy will request new pages.
cam | Camera which is being used for rendering. Class should not rely on this pointer remaining valid permanently because no notification will be given when the camera is destroyed. |
section |
Reimplemented from Ogre::PageStrategy.
|
overridevirtual |
Create a PageStrategyData instance containing the data specific to this PageStrategy.
Implements Ogre::PageStrategy.
|
overridevirtual |
Destroy a PageStrategyData instance containing the data specific to this PageStrategy.
Implements Ogre::PageStrategy.
Update the contents of the passed in SceneNode to reflect the debug display of a given page.
The PageStrategy is to have complete control of the contents of this SceneNode, it must not be altered / added to by others.
Implements Ogre::PageStrategy.
|
overridevirtual |