Go to the documentation of this file.
29 #ifndef __Ogre_PageStrategy_H__
30 #define __Ogre_PageStrategy_H__
80 : mName(name), mManager(manager)
virtual void frameStart(Real timeSinceLastFrame, PagedWorldSection *section)
Called when the frame starts.
virtual void destroyData(PageStrategyData *d)=0
Destroy a PageStrategyData instance containing the data specific to this PageStrategy.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
A viewpoint from which the scene will be rendered.
virtual bool load(StreamSerialiser &stream)=0
Load this data from a stream (returns true if successful)
PageManager * getManager() const
The PageManager is the entry point through which you load all PagedWorld instances,...
Abstract marker class representing the data held against the PagedWorldSection which is specifically ...
Class representing a node in the scene graph.
uint32 PageID
Identifier for a page.
Defines the interface to a strategy class which is responsible for deciding when Page instances are r...
virtual PageID getPageID(const Vector3 &worldPos, PagedWorldSection *section)=0
Get the page ID for a given world position.
const String & getName() const
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.
virtual ~PageStrategyData()
virtual void notifyCamera(Camera *cam, PagedWorldSection *section)
Called when a camera is used for any kind of rendering.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Utility class providing helper methods for reading / writing structured data held in a DataStream.
PageStrategy(const String &name, PageManager *manager)
virtual PageStrategyData * createData()=0
Create a PageStrategyData instance containing the data specific to this PageStrategy.
virtual void frameEnd(Real timeElapsed, PagedWorldSection *section)
Called when the frame ends.
float Real
Software floating point type.
Standard 3-dimensional vector.
virtual void save(StreamSerialiser &stream)=0
Save this data to a stream.
#define _OgrePagingExport
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.