phaser/src/gameobjects/tilesprite/TileSpriteWebGLRenderer.js

16 lines
403 B
JavaScript
Raw Normal View History

var GameObject = require('../GameObject');
2017-04-25 22:09:13 +00:00
var TileSpriteWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (GameObject.RENDER_MASK !== src.renderFlags || (src.cameraFilter > 0 && (src.cameraFilter & camera._id)))
2017-04-25 22:09:13 +00:00
{
return;
}
2017-07-04 11:36:27 +00:00
2017-05-02 20:57:21 +00:00
src.updateTileTexture();
2017-07-04 11:36:27 +00:00
renderer.tileBatch.addTileSprite(src, camera);
2017-04-25 22:09:13 +00:00
};
module.exports = TileSpriteWebGLRenderer;