Class: TextureManager

AL3D.TextureManager

new TextureManager()

Class that manager textures.
Author:
  • Ángel Luis Perales Gómez.
Source:

Methods

get(key) → {object}

Get a texture stored in the manager.
Parameters:
Name Type Description
key string The url of texture
Source:
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
Source:

set(key, value)

Store texture in the manager.
Parameters:
Name Type Description
key string The url of texture
value Object The texture stored
Source: