Class TextureManager
Defined in: TextureManager.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Textures have to be loaded first by invoking loadTexture().
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
TextureManager.getTexture(name)
|
| <static> |
TextureManager.loadTexture(source, name)
|
Class Detail
TextureManager()
Textures have to be loaded first by invoking loadTexture(). Once its loaded, it can be accessed with getTexture()
Method Detail
<static>
TextureManager.getTexture(name)
- Parameters:
- name
<static>
TextureManager.loadTexture(source, name)
- Parameters:
- source
- name
- each texture is stored with this unique name. this name can be used to retrieve the texture with getTexture
- Returns: