phaser/src/gameobjects/image/ImageWebGLRenderer.js

14 lines
360 B
JavaScript
Raw Normal View History

var GameObject = require('../GameObject');
var ImageWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
2016-12-07 02:28:22 +00:00
{
if (GameObject.RENDER_MASK !== src.renderFlags || (src.cameraFilter > 0 && (src.cameraFilter & camera._id)))
{
return;
}
2018-01-29 21:46:48 +00:00
this.pipeline.batchSprite(src, camera);
2016-12-07 02:28:22 +00:00
};
module.exports = ImageWebGLRenderer;