OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Abstract class that can be implemented by the user application to provide a way to retrieve or generate page data from a source of their choosing. More...
#include <OgrePageManager.h>
Public Member Functions | |
PageProvider () | |
virtual | ~PageProvider () |
virtual bool | loadProceduralPage (Page *page, PagedWorldSection *section) |
Give a provider the opportunity to load page content procedurally. | |
virtual bool | prepareProceduralPage (Page *page, PagedWorldSection *section) |
Give a provider the opportunity to prepare page content procedurally. | |
virtual StreamSerialiser * | readPageStream (PageID pageID, PagedWorldSection *section) |
Get a serialiser set up to read Page data for the given PageID, or null if this provider cannot supply one. | |
virtual StreamSerialiser * | readWorldStream (const String &filename) |
Get a serialiser set up to read PagedWorld data for the given world filename. | |
virtual bool | unloadProceduralPage (Page *page, PagedWorldSection *section) |
Give a provider the opportunity to unload page content procedurally. | |
virtual bool | unprepareProceduralPage (Page *page, PagedWorldSection *section) |
Give a provider the opportunity to unprepare page content procedurally. | |
virtual StreamSerialiser * | writePageStream (PageID pageID, PagedWorldSection *section) |
Get a serialiser set up to write Page data for the given PageID, or null if this provider cannot supply one. | |
virtual StreamSerialiser * | writeWorldStream (const String &filename) |
Get a serialiser set up to write PagedWorld data for the given world filename. | |
Abstract class that can be implemented by the user application to provide a way to retrieve or generate page data from a source of their choosing.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Give a provider the opportunity to prepare page content procedurally.
This call may well happen in a separate thread so it should not access GPU resources, use loadProceduralPage for that
|
inlinevirtual |
Give a provider the opportunity to load page content procedurally.
This call will happen in the main render thread so it can access GPU resources. Use prepareProceduralPage for background preparation.
|
inlinevirtual |
Give a provider the opportunity to unload page content procedurally.
You should not call this method directly. This call will happen in the main render thread so it can access GPU resources. Use _unprepareProceduralPage for background preparation.
|
inlinevirtual |
Give a provider the opportunity to unprepare page content procedurally.
You should not call this method directly. This call may well happen in a separate thread so it should not access GPU resources, use _unloadProceduralPage for that
|
inlinevirtual |
Get a serialiser set up to read PagedWorld data for the given world filename.
The StreamSerialiser returned is the responsibility of the caller to delete.
|
inlinevirtual |
Get a serialiser set up to write PagedWorld data for the given world filename.
The StreamSerialiser returned is the responsibility of the caller to delete.
|
inlinevirtual |
Get a serialiser set up to read Page data for the given PageID, or null if this provider cannot supply one.
The StreamSerialiser returned is the responsibility of the caller to delete.
pageID | The ID of the page being requested |
section | The parent section to which this page will belong |
|
inlinevirtual |
Get a serialiser set up to write Page data for the given PageID, or null if this provider cannot supply one.
The StreamSerialiser returned is the responsibility of the caller to delete.
pageID | The ID of the page being requested |
section | The parent section to which this page will belong |