src/video/webgl/compositor.js
function () {
            var indices = [
                0, 1, 2,
                2, 1, 3
            ];

            // ~384KB index buffer
            var data = new Array(MAX_LENGTH * INDICES_PER_QUAD);
            for (var i = 0; i < data.length; i++) {
                data[i] = indices[i % INDICES_PER_QUAD] +
                    ~~(i / INDICES_PER_QUAD) * ELEMENTS_PER_QUAD;
            }

            return new Uint16Array(data);
        }
function () {
            var indices = [
                0, 1, 2,
                2, 1, 3
            ];

            // ~384KB index buffer
            var data = new Array(MAX_LENGTH * INDICES_PER_QUAD);
            for (var i = 0; i < data.length; i++) {
                data[i] = indices[i % INDICES_PER_QUAD] +
                    ~~(i / INDICES_PER_QUAD) * ELEMENTS_PER_QUAD;
            }

            return new Uint16Array(data);
        }
function ( ) { var indices = [ 0 , 1 , 2 , 2 , 1 , 3 ] ; // ~384KB index buffer var data = new Array ( MAX_LENGTH * INDICES_PER_QUAD ) ; for ( var i = 0 ; i < data . length ; i ++ ) { data [ i ] = indices [ i % INDICES_PER_QUAD ] + ~ ~ ( i / INDICES_PER_QUAD ) * ELEMENTS_PER_QUAD ; } return new Uint16Array ( data ) ; }
Create a full index buffer for the element array
@ignore
Create a full index buffer for the element array