bool AddResourceFolder |
( |
const char * |
url, |
|
|
bool |
silent = false |
|
) |
| |
Tell the resource manager to load resources from the given location This method may be called multiple times to specify multiple locations
- Parameters
-
url | path to the resources. e.g. "./resources/". This may be a directory or zip file. |
silent | if false, then a popup is displayed to the user if the location is not found |
- Returns
- true if resources were successfully opened, false otherwise
Loads resources for a given component into RAM. The resources remain cached until the ResourceCache is Released.
ResourceRef* GetResourceRef |
( |
const char * |
resource_name | ) |
|
Get a reference to a given resource
- Parameters
-
resource_name | The unique string name of the resource (relative path to the file if using resource folders) |
- Returns
- reference to the resource or NULL if the resource was not found.
The documentation for this class was generated from the following file: