public void setFloatArray(String attributeName, float[] data)
    {
        if (!NativeVertexBuffer.setFloatArray(getNative(), attributeName, data, 0, 0))
        {
            throw new IllegalArgumentException("Attribute name " + attributeName + " cannot be updated");
        }
    }
public void setFloatArray ( String attributeName , float [ ] data ) { if ( ! NativeVertexBuffer . setFloatArray ( getNative ( ) , attributeName , data , 0 , 0 ) ) { throw new IllegalArgumentException ( "Attribute name " + attributeName + " cannot be updated" ) ; } }
Updates a vertex attribute from a float array.
All of the entries of the input float array are copied into
the storage for the named vertex attribute. Other vertex
attributes are not affected.
The attribute name must be one of the attributes named
in the descriptor passed to the constructor.
<p>
All vertex attributes have the same number of entries.
If this is the first attribute added to the vertex buffer,
the size of the input data array will determine the number of vertices.
Updating subsequent attributes will fail if the data array
size is not consistent. For example, if you create a vertex
buffer with descriptor "float3 a_position float2 a_texcoord"
and provide an array of 12 floats for "a_position" this will result in
a vertex count of 4. The corresponding data array for the
"a_texcoord" attribute should contain 8 floats.
@param attributeName name of the attribute to update
@param data float array containing the new values
@throws IllegalArgumentException if attribute name not in descriptor or float array is wrong size