phaser/v3/src/gameobjects/tilesprite/TileSpriteWebGLRenderer.js

12 lines
290 B
JavaScript
Raw Normal View History

2017-04-25 22:09:13 +00:00
var TileSpriteWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (this.renderMask !== this.renderFlags)
{
return;
}
2017-05-02 20:57:21 +00:00
src.updateTileTexture();
renderer.tileBatch.addTileSprite(src, camera);
2017-04-25 22:09:13 +00:00
};
module.exports = TileSpriteWebGLRenderer;