phaser/src/gameobjects/tilesprite/TileSpriteWebGLRenderer.js

16 lines
486 B
JavaScript
Raw Normal View History

var GameObject = require('../GameObject');
2018-01-25 00:15:51 +00:00
var Utils = require('../../renderer/webgl/Utils');
2018-01-25 00:15:51 +00:00
var TileSpriteWebGLRenderer = function (renderer, tileSprite, interpolationPercentage, camera)
2017-04-25 22:09:13 +00:00
{
2018-01-25 00:15:51 +00:00
if (GameObject.RENDER_MASK !== tileSprite.renderFlags || (tileSprite.cameraFilter > 0 && (tileSprite.cameraFilter & camera._id)))
2017-04-25 22:09:13 +00:00
{
return;
}
2017-07-04 11:36:27 +00:00
2018-01-25 00:15:51 +00:00
tileSprite.updateTileTexture();
2018-01-30 03:38:31 +00:00
this.pipeline.batchTileSprite(this, camera);
2017-04-25 22:09:13 +00:00
};
module.exports = TileSpriteWebGLRenderer;