Documentation

Classes

Class TextureManager

texture manager containing all Textures and able to load new ones, accessible via CopperLicht.getTextureManager().

Class Overview
TextureManager()
Texture manager containing all Textures and able to load new ones, accessible via CopperLicht.getTextureManager().

Method Summary
Method Attributes Method Name and Description
 
Returns the amount of textures which still need to be loaded
 
getTexture(url, createIfNotFound)
Returns a new texture object from an URL and starts loading it.
 
Returns the amount of textures
Method Detail
getCountOfTexturesToLoad()
Returns the amount of textures which still need to be loaded

{Texture} getTexture(url, createIfNotFound)
Returns a new texture object from an URL and starts loading it. If the texture has been already loaded, it doesn't load it a second time but returns the reference to the old texture.
Parameters:
url
{String} Url of the image. Can be relative like 'path/to/image/mytexture.jpg' or absolute like 'http://www.ambiera.com/images/ambiera_logo_big.png'
createIfNotFound
{Boolean} set to true to create a new texture object and start loading it if an existing once wasn't found with this url.
Returns:
{Texture} texture object

getTextureCount()
Returns the amount of textures

© 2010 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit