mirror of
https://github.com/photonstorm/phaser
synced 2024-12-30 06:53:07 +00:00
18 lines
424 B
JavaScript
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;
|