forked from Jibo-Revival-Group/JiboOs
39 lines
981 B
JavaScript
39 lines
981 B
JavaScript
/**
|
|
* Represents a background.
|
|
* @class Background
|
|
* @extends jibo.face.AbstractLayer
|
|
* @memberof jibo.face
|
|
* @param {Boolean} cache Cache the texture.
|
|
*/
|
|
|
|
/**
|
|
* The base sprite for holding the texture.
|
|
* @name jibo.face.Background#sprite
|
|
* @type {PIXI.Sprite}
|
|
*/
|
|
|
|
/**
|
|
* Default eye texture when nothing is set.
|
|
* @method jibo.face.Background#init
|
|
* @param {PIXI.Texture} texture The default texture to use
|
|
*/
|
|
|
|
/**
|
|
* Update of DOFValues.
|
|
* @method jibo.face.Background#display
|
|
* @param {Array<Number>} timestamp Timestamp when update is called.
|
|
* @param {jibo.face.DOFValues} dofValues Update display according to these values.
|
|
*/
|
|
|
|
/**
|
|
* Override destroy
|
|
* @method jibo.face.Background#destroy
|
|
* @override
|
|
*/
|
|
|
|
/**
|
|
* Set current eye texture.
|
|
* @method jibo.face.Background#setTexture
|
|
* @protected
|
|
* @param {PIXI.Texture} texture Texture to set
|
|
*/ |