Removed context arrays.

This commit is contained in:
Richard Davey 2016-10-05 01:47:54 +01:00
parent dc92c92a30
commit a096dd4f7d
2 changed files with 6 additions and 28 deletions

View file

@ -43,24 +43,18 @@ Phaser.Texture = function (manager, key, source)
/**
* @property {object} frames - Frames
*/
this.frames = {
};
this.frames = {};
this.frameTotal = 0;
/**
* @property _dirty
* @type Array
* @private
*/
this._dirty = [ true, true, true, true ];
this.dirty = true;
/**
* @property _glTextures
* @type Array
* @private
*/
this._glTextures = [];
this.glTextures = null;
// Load the Sources
for (var i = 0; i < source.length; i++)
@ -107,19 +101,6 @@ Phaser.Texture.prototype = {
}
},
/**
* Sets all glTextures to be dirty.
*
* @method dirty
*/
dirty: function ()
{
for (var i = 0; i < this._glTextures.length; i++)
{
this._dirty[i] = true;
}
},
/**
* Destroys this base texture
*

View file

@ -20,9 +20,7 @@ Phaser.TextureManager = function (game)
{
this.game = game;
this.list = {
// Empty by default
};
this.list = {};
this.parsers = {
Image: Phaser.TextureManager.Parsers.Image,
@ -37,9 +35,8 @@ Phaser.TextureManager = function (game)
Phaser.TextureManager.prototype.constructor = Phaser.TextureManager;
Phaser.TextureManager.Parsers = {
// Where the different parsers hook themselves
};
// Where the different parsers hook themselves
Phaser.TextureManager.Parsers = {};
Phaser.TextureManager.prototype = {