OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Page strategy which loads new pages based on a regular 2D grid. More...
#include <OgreGrid2DPageStrategy.h>
Public Member Functions | |
Grid2DPageStrategy (PageManager *manager) | |
~Grid2DPageStrategy () | |
PageStrategyData * | createData () override |
Create a PageStrategyData instance containing the data specific to this PageStrategy. More... | |
void | destroyData (PageStrategyData *d) override |
Destroy a PageStrategyData instance containing the data specific to this PageStrategy. More... | |
PageID | getPageID (const Vector3 &worldPos, PagedWorldSection *section) override |
Get the page ID for a given world position. More... | |
void | notifyCamera (Camera *cam, PagedWorldSection *section) override |
Called when a camera is used for any kind of rendering. More... | |
void | updateDebugDisplay (Page *p, SceneNode *sn) override |
Update the contents of the passed in SceneNode to reflect the debug display of a given page. More... | |
Public Member Functions inherited from Ogre::PageStrategy | |
PageStrategy (const String &name, PageManager *manager) | |
virtual | ~PageStrategy () |
virtual void | frameEnd (Real timeElapsed, PagedWorldSection *section) |
Called when the frame ends. More... | |
virtual void | frameStart (Real timeSinceLastFrame, PagedWorldSection *section) |
Called when the frame starts. More... | |
PageManager * | getManager () const |
const String & | getName () const |
Page strategy which loads new pages based on a regular 2D grid.
Ogre::Grid2DPageStrategy::Grid2DPageStrategy | ( | PageManager * | manager | ) |
Ogre::Grid2DPageStrategy::~Grid2DPageStrategy | ( | ) |
|
overridevirtual |
Called when a camera is used for any kind of rendering.
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.
Implements Ogre::PageStrategy.
|
overridevirtual |