phaser/v3/src/gameobjects/container/ContainerCanvasRenderer.js
2017-02-24 02:59:44 +00:00

18 lines
424 B
JavaScript

var ContainerCanvasRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (this.renderMask !== this.renderFlags)
{
return;
}
// Render children
for (var i = 0; i < src.children.list.length; i++)
{
var child = src.children.list[i];
child.renderCanvas(renderer, child, interpolationPercentage, camera);
}
};
module.exports = ContainerCanvasRenderer;