phaser/src/gameobjects/rendertexture/RenderTextureRender.js

20 lines
352 B
JavaScript
Raw Normal View History

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