src/render/RenderWebGL.js
/**
 * creates WebGL render layer cache object
 *
 * @returns {RenderWebGL}
 */
creates WebGL render layer cache object
@returns {RenderWebGL}
creates WebGL render layer cache object @returns { RenderWebGL }
function RenderWebGLSpriteLayer(render, layer) {
    RenderWebGLLayer.apply(this, arguments);
    this.frontToBackBuffer = render.gl.createBuffer();
    this.backToFrontBuffer = render.gl.createBuffer();
    this.elementsCount = this.layer.count() * 6;
}
function RenderWebGLSpriteLayer ( render , layer ) { RenderWebGLLayer . apply ( this , arguments ) ; this . frontToBackBuffer = render . gl . createBuffer ( ) ; this . backToFrontBuffer = render . gl . createBuffer ( ) ; this . elementsCount = this . layer . count ( ) * 6 ; }
creates WebGL render layer cache object
 @returns {RenderWebGL}
creates WebGL render layer cache object @returns { RenderWebGL }
// create buffers