question: private static FloatBuffer createVertexArray ( float [ ] coords ) { ByteBuffer bb = ByteBuffer . allocateDirect ( coords . length * 4 ) ; bb . order ( ByteOrder . nativeOrder ( ) ) ; FloatBuffer fb = bb . asFloatBuffer ( ) ; fb . put ( coords ) ; fb . position ( 0 ) ; return fb ; }
target:  Allocates a direct float buffer, and populates it with the vertex data.