public float [ ] getFloatArray ( String attributeName ) { float [ ] array = NativeVertexBuffer . getFloatArray ( getNative ( ) , attributeName ) ; if ( array == null ) { throw new IllegalArgumentException ( "Attribute name " + attributeName + " cannot be accessed" ) ; } return array ; }
Retrieves a vertex attribute as a float array . The attribute name must be one of the attributes named in the descriptor passed to the constructor .