2018-03-05 02:24:47 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-02-23 03:44:22 +00:00
|
|
|
var renderWebGL = require('../../utils/NOOP');
|
|
|
|
var renderCanvas = require('../../utils/NOOP');
|
|
|
|
|
2018-04-19 23:23:24 +00:00
|
|
|
if (typeof WEBGL_RENDERER)
|
2018-02-23 03:44:22 +00:00
|
|
|
{
|
|
|
|
renderWebGL = require('./RenderTextureWebGLRenderer');
|
|
|
|
}
|
|
|
|
|
2018-04-19 23:23:24 +00:00
|
|
|
if (typeof CANVAS_RENDERER)
|
2018-02-23 03:44:22 +00:00
|
|
|
{
|
|
|
|
renderCanvas = require('./RenderTextureCanvasRenderer');
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
renderWebGL: renderWebGL,
|
|
|
|
renderCanvas: renderCanvas
|
|
|
|
|
|
|
|
};
|