mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 21:13:41 +00:00
13 lines
365 B
JavaScript
13 lines
365 B
JavaScript
var GameObject = require('../GameObject');
|
|
|
|
var ImageWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
|
|
{
|
|
if (GameObject.RENDER_MASK !== src.renderFlags || (src.cameraFilter > 0 && (src.cameraFilter & camera._id)))
|
|
{
|
|
return;
|
|
}
|
|
|
|
renderer.spriteBatch.addSprite(src, camera);
|
|
};
|
|
|
|
module.exports = ImageWebGLRenderer;
|