Class: TexturePrimitive

TexturePrimitive() → {TexturePrimitive}

new TexturePrimitive() → {TexturePrimitive}

Provides a base class object which stores textures and rendering object.
Author:
  • Alan Wu
Source:
Returns:
Type
TexturePrimitive

Methods

initialise(textureData, finishCallback)

Initialise a texture based on the provided textureData, this should be used internally only.
Parameters:
Name Type Description
textureData Object contains the informations about the textures.
finishCallback function User's function to be called once texture's is loaded.
Source:

load(textureData, finishCallback)

Load texture data into this primitves.
Parameters:
Name Type Description
textureData Object contains the informations about the textures.
finishCallback function User's function to be called once texture's is loaded.
Source: