phaser/src/textures/parsers/Canvas.js

11 lines
219 B
JavaScript
Raw Normal View History

var Canvas = function (texture, sourceIndex)
{
var source = texture.source[sourceIndex];
texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);
return texture;
};
module.exports = Canvas;