phaser/src/gameobjects/sprite/SpriteRender.js

20 lines
338 B
JavaScript
Raw Normal View History

var renderWebGL = require('../../utils/NOOP');
var renderCanvas = require('../../utils/NOOP');
if (WEBGL_RENDERER)
{
renderWebGL = require('./SpriteWebGLRenderer');
}
if (CANVAS_RENDERER)
{
renderCanvas = require('./SpriteCanvasRenderer');
}
module.exports = {
renderWebGL: renderWebGL,
renderCanvas: renderCanvas
};