phaser/src/gameobjects/graphics/GraphicsRender.js

23 lines
443 B
JavaScript
Raw Normal View History

var renderWebGL = require('../../utils/NOOP');
var renderCanvas = require('../../utils/NOOP');
if (WEBGL_RENDERER)
{
renderWebGL = require('./GraphicsWebGLRenderer');
// Needed for Graphics.generateTexture
renderCanvas = require('./GraphicsCanvasRenderer');
}
if (CANVAS_RENDERER)
{
renderCanvas = require('./GraphicsCanvasRenderer');
}
2017-02-28 14:49:39 +00:00
module.exports = {
renderWebGL: renderWebGL,
renderCanvas: renderCanvas
2017-02-28 14:49:39 +00:00
};