OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Defines the interface to a strategy class which is responsible for deciding when Page instances are requested for addition and removal from the paging system. More...
#include <OgrePageStrategy.h>
Public Member Functions | |
PageStrategy (const String &name, PageManager *manager) | |
virtual | ~PageStrategy () |
virtual PageStrategyData * | createData () OGRE_NODISCARD=0 |
Create a PageStrategyData instance containing the data specific to this PageStrategy. More... | |
virtual void | destroyData (PageStrategyData *d)=0 |
Destroy a PageStrategyData instance containing the data specific to this PageStrategy. More... | |
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 |
virtual PageID | getPageID (const Vector3 &worldPos, PagedWorldSection *section)=0 |
Get the page ID for a given world position. More... | |
virtual void | notifyCamera (Camera *cam, PagedWorldSection *section) |
Called when a camera is used for any kind of rendering. More... | |
virtual void | updateDebugDisplay (Page *p, SceneNode *sn)=0 |
Update the contents of the passed in SceneNode to reflect the debug display of a given page. More... | |
Defines the interface to a strategy class which is responsible for deciding when Page instances are requested for addition and removal from the paging system.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
Called when the frame starts.
|
inlinevirtual |
Called when the frame ends.
|
inlinevirtual |
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. |
Reimplemented in Ogre::Grid2DPageStrategy, and Ogre::Grid3DPageStrategy.
References OGRE_NODISCARD.
|
pure virtual |
Create a PageStrategyData instance containing the data specific to this PageStrategy.
Implemented in Ogre::Grid2DPageStrategy, and Ogre::Grid3DPageStrategy.
|
pure virtual |
Destroy a PageStrategyData instance containing the data specific to this PageStrategy.
Implemented in Ogre::Grid2DPageStrategy, and Ogre::Grid3DPageStrategy.
Update the contents of the passed in SceneNode to reflect the debug display of a given page.
Implemented in Ogre::Grid2DPageStrategy, and Ogre::Grid3DPageStrategy.
|
pure virtual |
Get the page ID for a given world position.
Implemented in Ogre::Grid2DPageStrategy, and Ogre::Grid3DPageStrategy.