build/module/lib/core/computeStride.js
/**
 * Computes the stride for a given collection of attributes.
 * @hidden
 */
Computes the stride for a given collection of attributes.
@hidden
Computes the stride for a given collection of attributes . @hidden
function computeStride(attributes, aNames) {
    var aNamesLen = aNames.length;
    var stride = 0;
    for (var a = 0; a < aNamesLen; a++) {
        var aName = aNames[a];
        var attrib = attributes[aName];
        stride += attrib.size * 4; 
    }
    return stride;
}
function computeStride ( attributes , aNames ) { var aNamesLen = aNames . length ; var stride = 0 ; for ( var a = 0 ; a < aNamesLen ; a ++ ) { var aName = aNames [ a ] ; var attrib = attributes [ aName ] ; stride += attrib . size * 4 ; } return stride ; }
Computes the stride for a given collection of attributes.
Computes the stride for a given collection of attributes .
// We're assuming that the data type is gl.FLOAT