phaser/v3/src/gameobjects/text/static/TextWebGLRenderer.js

12 lines
309 B
JavaScript
Raw Normal View History

var TextWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (this.renderMask !== this.renderFlags)
{
return;
}
renderer.spriteBatch.addSpriteTexture(src, camera, src.canvasTexture, src.prevWidth, src.prevHeight);
};
module.exports = TextWebGLRenderer;