#include <iResourceDictionary.h>
◆ iResourceDictionary()
| igor::iResourceDictionary::iResourceDictionary |
( |
| ) |
|
|
default |
◆ addResource()
| const iResourceID igor::iResourceDictionary::addResource |
( |
const iaString & |
filename, |
|
|
const iaString & |
alias = "", |
|
|
bool |
internal = false |
|
) |
| |
adds a resource to the dictionary
- Parameters
-
| filename | the file name of the resource |
| alias | the alias to use for this resource |
| internal | if true it is marked for internal use in engine only |
◆ clear()
| void igor::iResourceDictionary::clear |
( |
| ) |
|
clears the resource dictionary
◆ getAlias()
- Returns
- alias for given resource id
- Parameters
-
◆ getFilename()
- Returns
- filename for given resource id
- Parameters
-
◆ getResource()
- Returns
- resource id for given alias of filepath
- Parameters
-
| text | the given alias or filepath |
◆ read()
| bool igor::iResourceDictionary::read |
( |
const iaString & |
filename | ) |
|
imports resource dictionary
- Parameters
-
| filename | filename of resource dictionary to import |
| internal | marks all these entries to not be exported during write |
- Returns
- true if successful
◆ removeResource()
| void igor::iResourceDictionary::removeResource |
( |
iResourceID |
resourceID | ) |
|
removes resource with given id
- Parameters
-
| resourceID | the given resource id |
◆ setAlias()
set alias for given resource (only accept the alias if unique in current environment)
- Parameters
-
| id | the given id |
| alias | the given alias |
◆ write()
| bool igor::iResourceDictionary::write |
( |
const iaString & |
filename | ) |
|
write the current resources in to a dictionary
- Parameters
-
| filename | resource dictionary filename |
- Returns
- true if successful
◆ iResourceManager
The documentation for this class was generated from the following files: