Methods
get(key) → {object}
Get a texture stored in the manager.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The url of texture |
Returns:
- return a texture.
- Type
- object
loadTexture(url, callback)
Load a texture from the texture manager.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | the url of texture |
callback |
function | function to call when the texture is loaded |
set(key, value)
Store texture in the manager.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The url of texture |
value |
Object | The texture stored |