public static FloatBuffer createVector2Buffer(FloatBuffer buf, int vertices) { if (buf != null && buf.capacity() == 2 * vertices) { buf.rewind(); return buf; } else return createFloatBuffer(2 * vertices);
public static FloatBuffer createVector2Buffer(int vertices) { FloatBuffer vBuff = createFloatBuffer(2 * vertices); return vBuff;
    public static FloatBuffer createVector2Buffer(FloatBuffer buf, int vertices) {        if (buf != null && buf.capacity() == 2 * vertices) {            buf.rewind();            return buf;        } else return createFloatBuffer(2 * vertices);    }