#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| DIOGREResource * | create (const char *name, const char *group, bool isManual=false) |
| Creates a new blank resource, but does not immediately load it. | |
| void | setMemoryBudget (unsigned int bytes) |
| Set a limit on the amount of memory this resource handler may use. | |
| unsigned int | getMemoryBudget () |
| Get the limit on the amount of memory this resource handler may use. | |
| void | unload (const char *name) |
| Unloads a single resource by name. | |
| void | unload (unsigned long handle) |
| Unloads a single resource by handle. | |
| void | unloadAll () |
| Unloads all resources. | |
| void | reloadAll () |
| Caused all currently loaded resources to be reloaded. | |
| void | remove (DIOGREResource *r) |
| Remove a single resource. | |
| void | remove (const char *name) |
| Remove a single resource by name. | |
| void | remove (unsigned long handle) |
| Remove a single resource by handle. | |
| void | removeAll () |
| Removes all resources. | |
| DIOGREResource * | getByName (const char *name) |
| Retrieves a pointer to a resource by name, or null if the resource does not exist. | |
| DIOGREResource * | getByHandle (unsigned long handle) |
| Retrieves a pointer to a resource by handle, or null if the resource does not exist. | |
| bool | resourceExists (const char *name) |
| Returns whether the named resource exists in this manager. | |
| bool | resourceExists (unsigned long handle) |
| Returns whether a resource with the given handle exists in this manager. | |
| DIOGREResource * | load (const char *name, const char *group, bool isManual=false) |
| Generic load method, used to create a Resource specific to this ResourceManager without using one of the specialised 'load' methods (containing per-Resource-type parameters). | |
| void | getScriptPatterns (DIStringList1 *patterns) |
| Gets the file patterns which should be used to find scripts for this ResourceManager. | |
| void | parseScript (void *stream, unsigned int stream_size, const char *groupName) |
| Parse the definition of a set of resources from a script file. | |
| float | getLoadingOrder () |
| Gets the relative loading order of resources of this type. | |
| const char * | getResourceType () |
| Gets a string identifying the type of resource this manager handles. | |
| DIOGREResource* DigitalSpaces::DIOGREResourceManager::create | ( | const char * | name, | |
| const char * | group, | |||
| bool | isManual = false | |||
| ) |
Creates a new blank resource, but does not immediately load it.
| name | The unique name of the resource | |
| group | The name of the resource group to attach this new resource to | |
| isManual | Is this resource manually loaded? If so, you should really populate the loader parameter in order that the load process can call the loader back when loading is required. |
| void DigitalSpaces::DIOGREResourceManager::setMemoryBudget | ( | unsigned int | bytes | ) |
Set a limit on the amount of memory this resource handler may use.
| unsigned int DigitalSpaces::DIOGREResourceManager::getMemoryBudget | ( | ) |
Get the limit on the amount of memory this resource handler may use.
| void DigitalSpaces::DIOGREResourceManager::unload | ( | const char * | name | ) |
Unloads a single resource by name.
| void DigitalSpaces::DIOGREResourceManager::unload | ( | unsigned long | handle | ) |
Unloads a single resource by handle.
| void DigitalSpaces::DIOGREResourceManager::unloadAll | ( | ) |
Unloads all resources.
| void DigitalSpaces::DIOGREResourceManager::reloadAll | ( | ) |
Caused all currently loaded resources to be reloaded.
| void DigitalSpaces::DIOGREResourceManager::remove | ( | DIOGREResource * | r | ) |
Remove a single resource.
If you do have shared pointers to resources hanging around after the ResourceManager is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.
| void DigitalSpaces::DIOGREResourceManager::remove | ( | const char * | name | ) |
Remove a single resource by name.
If you do have shared pointers to resources hanging around after the ResourceManager is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.
| void DigitalSpaces::DIOGREResourceManager::remove | ( | unsigned long | handle | ) |
Remove a single resource by handle.
If you do have shared pointers to resources hanging around after the ResourceManager is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.
| void DigitalSpaces::DIOGREResourceManager::removeAll | ( | ) |
Removes all resources.
If you do have shared pointers to resources hanging around after the ResourceManager is destroyed, you may get problems on destruction of these resources if they were relying on the manager (especially if it is a plugin). If you find you get problems on shutdown in the destruction of resources, try making sure you release all your shared pointers before you shutdown OGRE.
| DIOGREResource* DigitalSpaces::DIOGREResourceManager::getByName | ( | const char * | name | ) |
Retrieves a pointer to a resource by name, or null if the resource does not exist.
| DIOGREResource* DigitalSpaces::DIOGREResourceManager::getByHandle | ( | unsigned long | handle | ) |
Retrieves a pointer to a resource by handle, or null if the resource does not exist.
| bool DigitalSpaces::DIOGREResourceManager::resourceExists | ( | const char * | name | ) |
Returns whether the named resource exists in this manager.
| bool DigitalSpaces::DIOGREResourceManager::resourceExists | ( | unsigned long | handle | ) |
Returns whether a resource with the given handle exists in this manager.
| DIOGREResource* DigitalSpaces::DIOGREResourceManager::load | ( | const char * | name, | |
| const char * | group, | |||
| bool | isManual = false | |||
| ) |
Generic load method, used to create a Resource specific to this ResourceManager without using one of the specialised 'load' methods (containing per-Resource-type parameters).
| name | The name of the Resource | |
| group | The resource group to which this resource will belong | |
| isManual | Is the resource to be manually loaded? If so, you should provide a value for the loader parameter | |
| loader | The manual loader which is to perform the required actions when this resource is loaded; only applicable when you specify true for the previous parameter | |
| loadParams | Optional pointer to a list of name/value pairs containing loading parameters for this type of resource. |
| void DigitalSpaces::DIOGREResourceManager::getScriptPatterns | ( | DIStringList1 * | patterns | ) |
Gets the file patterns which should be used to find scripts for this ResourceManager.
| void DigitalSpaces::DIOGREResourceManager::parseScript | ( | void * | stream, | |
| unsigned int | stream_size, | |||
| const char * | groupName | |||
| ) |
Parse the definition of a set of resources from a script file.
| stream | Weak reference to a data stream which is the source of the script | |
| groupName | The name of the resource group that resources which are parsed are to become a member of. If this group is loaded or unloaded, then the resources discovered in this script will be loaded / unloaded with it. |
| float DigitalSpaces::DIOGREResourceManager::getLoadingOrder | ( | ) |
Gets the relative loading order of resources of this type.
| const char* DigitalSpaces::DIOGREResourceManager::getResourceType | ( | ) |
Gets a string identifying the type of resource this manager handles.
1.5.6