mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 12:33:38 +00:00
25 lines
518 B
JavaScript
25 lines
518 B
JavaScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2022 Photon Storm Ltd.
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
|
*/
|
|
|
|
var NOOP = require('../../utils/NOOP');
|
|
var renderWebGL = NOOP, renderCanvas = NOOP;
|
|
|
|
if (typeof WEBGL_RENDERER)
|
|
{
|
|
renderWebGL = require('./SpriteWebGLRenderer');
|
|
}
|
|
|
|
if (typeof CANVAS_RENDERER)
|
|
{
|
|
renderCanvas = require('./SpriteCanvasRenderer');
|
|
}
|
|
|
|
module.exports = {
|
|
|
|
renderWebGL: renderWebGL,
|
|
renderCanvas: renderCanvas
|
|
|
|
};
|