public static void setInBuffer(Vector3f vector, FloatBuffer buf, int index) { buf.put(index * 3, vector.x); buf.put((index * 3) + 1, vector.y); buf.put((index * 3) + 2, vector.z);
public static void setInBuffer(ColorRGBA color, FloatBuffer buf, int index) { buf.rewind(); buf.put(index * 4, color.r); buf.put((index * 4) + 1, color.g); buf.put((index * 4) + 2, color.b); buf.put((index * 4) + 3, color.a);
    public static void setInBuffer(Vector3f vector, FloatBuffer buf, int index) {        buf.put(index * 3, vector.x);        buf.put((index * 3) + 1, vector.y);        buf.put((index * 3) + 2, vector.z);    }