mirror of
https://github.com/photonstorm/phaser
synced 2024-12-12 06:12:53 +00:00
29 lines
661 B
JavaScript
29 lines
661 B
JavaScript
|
Phaser.Renderer.WebGL.GameObjects.Blitter = {
|
||
|
|
||
|
TYPES: [
|
||
|
Phaser.GameObject.Blitter.prototype
|
||
|
],
|
||
|
|
||
|
render: function (renderer, src)
|
||
|
{
|
||
|
var alpha = src.color.worldAlpha * 255 << 24;
|
||
|
|
||
|
// Skip rendering?
|
||
|
// if (src.skipRender || !src.visible || alpha === 0 || src.children.list.length === 0)
|
||
|
if (src.skipRender || !src.visible || alpha === 0)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
// Render children
|
||
|
// for (var i = 0; i < src.children.list.length; i++)
|
||
|
// {
|
||
|
// var child = src.children.list[i];
|
||
|
|
||
|
// child.render(renderer, child);
|
||
|
// }
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|