29 #ifndef __Ogre_PageContentCollection_H__
30 #define __Ogre_PageContentCollection_H__
#define _OgrePagingExport
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.
Define the interface to a factory class that will create subclasses of PageContentCollection.
Definition of the interface for a collection of PageContent instances.
virtual const String & getType() const
Get the type of the collection, which will match it's factory.
Page * getParentPage() const
virtual void frameStart(Real timeSinceLastFrame)=0
Called when the frame starts.
virtual void unload()=0
Unload - will be called in main thread.
virtual void unprepare()=0
Unprepare data - may be called in the background.
virtual bool prepare(StreamSerialiser &ser)=0
Prepare data - may be called in the background.
static const uint16 CHUNK_VERSION
PageContentCollection(PageContentCollectionFactory *creator)
PageManager * getManager() const
virtual void save(StreamSerialiser &stream)=0
Save the collection to a stream.
virtual void notifyCamera(Camera *cam)=0
Notify a section of the current camera.
virtual void load()=0
Load - will be called in main thread.
virtual ~PageContentCollection()
virtual void _notifyAttached(Page *parent)
Internal method to notify a collection that it is attached.
SceneManager * getSceneManager() const
static const uint32 CHUNK_ID
virtual void frameEnd(Real timeElapsed)=0
Called when the frame ends.
PageContentCollectionFactory * mCreator
The PageManager is the entry point through which you load all PagedWorld instances,...
Manages the organisation and rendering of a 'scene' i.e.
Utility class providing helper methods for reading / writing structured data held in a DataStream.
float Real
Software floating point type.