Public Methods |
| | OverlayManager () |
| virtual | ~OverlayManager () |
| void | parseOverlayFile (DataChunk &chunk) |
| | Parses an overlay file passed as a chunk. More...
|
| void | parseAllSources (const String &extension=".overlay") |
| | Parses all overlay files in resource folders & archives. More...
|
| virtual Resource * | create (const String &name) |
| | Create implementation required by ResourceManager. More...
|
| void | _queueOverlaysForRendering (Camera *cam, RenderQueue *pQueue, Viewport *vp) |
| | Internal method for queueing the visible overlays for rendering. More...
|
| bool | hasViewportChanged (void) |
| | Method for determining if the viewport has changed dimensions. More...
|
| int | getViewportHeight (void) |
| | Gets the height of the destination viewport in pixels. More...
|
| int | getViewportWidth (void) |
| | Gets the width of the destination viewport in pixels. More...
|
| PositionTarget * | getPositionTargetAt (Real x, Real y) |
| | This returns a PositionTarget at position x,y. More...
|
| void | setCursorGui (GuiContainer *cursor, MouseMotionListener *cursorListener) |
| | register the cursor GUI implementation with the manager. More...
|
| GuiContainer * | getCursorGui () |
| | returns the registered cursor GUI. More...
|
| void | createCursorOverlay () |
| | create the high cursor level overlay and add the registered Cursor GUI implementation to it. More...
|
| virtual void | setMemoryBudget (size_t bytes) |
| | Set a limit on the amount of memory this resource handler may use. More...
|
| virtual void | load (Resource *res, int priority) |
| | Load a resource. More...
|
| virtual void | unload (Resource *res) |
| | Unloads a Resource from the managed resources list, calling it's unload() method. More...
|
| virtual void | unloadAndDestroyAll (void) |
| | Unloads all Resources from memory. More...
|
| virtual Resource * | getByName (const String &name) |
| | Retrieves a pointer to a resource by name. More...
|
| void | addSearchPath (const String &path) |
| | Adds a relative path to search for resources of this type. More...
|
| void | addArchiveEx (const String &strName, const String &strDriverName) |
| | Adds an archive to the search path for this type of resource. More...
|
| bool | _findResourceData (const String &filename, DataChunk &refChunk) |
| | Internal method, used for locating resource data in the file system / archives. More...
|
Static Public Methods |
| OverlayManager & | getSingleton (void) |
| | Override standard Singleton retrieval. More...
|
| void | addCommonSearchPath (const String &path) |
| | Adds a relative search path for resources of ALL types. More...
|
| void | addCommonArchiveEx (const String &strName, const String &strDriverName) |
| | Adds an archive to the search path for all resources. More...
|
| std::set< String > | _getAllCommonNamesLike (const String &startPath, const String &extension) |
| | Returns a collection of files with the given extension in the common resource paths. More...
|
| bool | _findCommonResourceData (const String &filename, DataChunk &refChunk) |
| | Internal method, used for locating common resource data in the file system / archives. More...
|
| OverlayManager * | getSingletonPtr (void) |
Protected Types |
typedef HashMap< String, ArchiveEx *,
_StringHash > | FileMap |
Protected Methods |
| void | parseNewElement (DataChunk &chunk, String &elemType, String &elemName, bool isContainer, Overlay *pOverlay, bool isTemplate, String templateName=String(""), GuiContainer *container=0) |
| void | parseAttrib (const String &line, Overlay *pOverlay) |
| void | parseElementAttrib (const String &line, Overlay *pOverlay, GuiElement *pElement) |
| void | parseNewMesh (DataChunk &chunk, String &meshName, String &entityName, Overlay *pOverlay) |
| void | skipToNextCloseBrace (DataChunk &chunk) |
| void | skipToNextOpenBrace (DataChunk &chunk) |
| bool | parseChildren (DataChunk &chunk, const String &line, Overlay *pOverlay, bool isTemplate, GuiContainer *parent=NULL) |
| void | checkUsage (void) |
| | Checks memory usage and pages out if required. More...
|
Protected Attributes |
| GuiContainer * | mCursorGuiRegistered |
| MouseMotionListener * | mCursorListener |
| Overlay * | mCursorLevelOverlay |
| int | mLastViewportWidth |
| int | mLastViewportHeight |
| bool | mViewportDimensionsChanged |
| FileMap | mArchiveFiles |
| ResourceMap | mResources |
| size_t | mMemoryBudget |
| size_t | mMemoryUsage |
| std::vector< ArchiveEx * > | mVFS |
| | Collection of searchable ArchiveEx classes (virtual file system) for this resource type. More...
|
Static Protected Attributes |
| FileMap | mCommonArchiveFiles |
| std::vector< ArchiveEx * > | mCommonVFS |
| | Collection of searchable ArchiveEx classes (virtual file system) for all resource types. More...
|
| OverlayManager * | ms_Singleton = 0 |