build/module/lib/core/vertexArraysFromPrimitive.js
/**
 * Converts the Primitive to the interleaved VertexArrays format.
 * This conversion is performed for eddiciency; it allows multiple attributes to be
 * combined into a single array of numbers so that it may be stored in a single vertex buffer.
 * @hidden
 *
 * @param primitive The Primitive to be converted.
 * @param order The ordering of the attributes.
 */
Converts the Primitive to the interleaved VertexArrays format.
This conversion is performed for eddiciency; it allows multiple attributes to be
combined into a single array of numbers so that it may be stored in a single vertex buffer.
@hidden

@param primitive The Primitive to be converted.
@param order The ordering of the attributes.
Converts the Primitive to the interleaved VertexArrays format . This conversion is performed for eddiciency ; it allows multiple attributes to be combined into a single array of numbers so that it may be stored in a single vertex buffer . @hidden @param primitive The Primitive to be converted . @param order The ordering of the attributes .
function vertexArraysFromPrimitive(primitive, order) {
    if (primitive) {
        var keys = order ? order : Object.keys(primitive.attributes);
        var that = {
            mode: primitive.mode,
            indices: primitive.indices,
            attributes: computeAttributes(primitive.attributes, keys),
            stride: computeStride(primitive.attributes, keys),
            pointers: computePointers(primitive.attributes, keys)
        };
        return that;
    }
    else {
        return void 0;
    }
}
function vertexArraysFromPrimitive ( primitive , order ) { if ( primitive ) { var keys = order ? order : Object . keys ( primitive . attributes ) ; var that = { mode : primitive . mode , indices : primitive . indices , attributes : computeAttributes ( primitive . attributes , keys ) , stride : computeStride ( primitive . attributes , keys ) , pointers : computePointers ( primitive . attributes , keys ) } ; return that ; } else { return void 0 ; } }
Converts the Primitive to the interleaved VertexArrays format.
Converts the Primitive to the interleaved VertexArrays format .