OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Definition of the interface for a collection of PageContent instances. More...
#include <OgrePageContentCollection.h>
Public Member Functions | |
PageContentCollection (PageContentCollectionFactory *creator) | |
virtual | ~PageContentCollection () |
virtual void | _notifyAttached (Page *parent) |
Internal method to notify a collection that it is attached. | |
virtual void | frameEnd (Real timeElapsed)=0 |
Called when the frame ends. | |
virtual void | frameStart (Real timeSinceLastFrame)=0 |
Called when the frame starts. | |
PageManager * | getManager () const |
Page * | getParentPage () const |
SceneManager * | getSceneManager () const |
virtual const String & | getType () const |
Get the type of the collection, which will match it's factory. | |
virtual void | load ()=0 |
Load - will be called in main thread. | |
virtual void | notifyCamera (Camera *cam)=0 |
Notify a section of the current camera. | |
virtual bool | prepare (StreamSerialiser &ser)=0 |
Prepare data - may be called in the background. | |
virtual void | save (StreamSerialiser &stream)=0 |
Save the collection to a stream. | |
virtual void | unload ()=0 |
Unload - will be called in main thread. | |
virtual void | unprepare ()=0 |
Unprepare data - may be called in the background. | |
Static Public Attributes | |
static const uint32 | CHUNK_ID |
static const uint16 | CHUNK_VERSION |
Definition of the interface for a collection of PageContent instances.
This class acts as a grouping level for PageContent instances. Rather than PageContent instances being held in a list directly under Page, which might be the most obvious solution, this intermediate class is here to allow the collection of relevant PageContent instances to be modified at runtime if required. For example, potentially you might want to define Page-level LOD in which different collections of PageContent are loaded at different times.
Ogre::PageContentCollection::PageContentCollection | ( | PageContentCollectionFactory * | creator | ) |
|
virtual |
PageManager * Ogre::PageContentCollection::getManager | ( | ) | const |
|
inline |
SceneManager * Ogre::PageContentCollection::getSceneManager | ( | ) | const |
Get the type of the collection, which will match it's factory.
Internal method to notify a collection that it is attached.
|
pure virtual |
Save the collection to a stream.
Implemented in Ogre::SimplePageContentCollection.
Called when the frame starts.
Implemented in Ogre::SimplePageContentCollection.
Called when the frame ends.
Implemented in Ogre::SimplePageContentCollection.
Notify a section of the current camera.
Implemented in Ogre::SimplePageContentCollection.
|
pure virtual |
Prepare data - may be called in the background.
Implemented in Ogre::SimplePageContentCollection.
Load - will be called in main thread.
Implemented in Ogre::SimplePageContentCollection.
Unload - will be called in main thread.
Implemented in Ogre::SimplePageContentCollection.
Unprepare data - may be called in the background.
Implemented in Ogre::SimplePageContentCollection.