phaser/v3/src/gameobjects/sprite/SpriteCanvasRenderer.js

11 lines
230 B
JavaScript
Raw Normal View History

2017-01-24 18:08:56 +00:00
var SpriteCanvasRenderer = function (renderer, src, interpolationPercentage, camera)
2017-01-24 18:08:56 +00:00
{
if (this.renderMask === this.renderFlags)
2017-01-24 18:08:56 +00:00
{
renderer.drawImage(src, camera);
2017-01-24 18:08:56 +00:00
}
};
module.exports = SpriteCanvasRenderer;