/** * Add the given {@link FloatBuffer} to the direct texture buffer, if the direct texture buffer does not have the * capacity this method will return -1; * * @param textureBuffer * to add to the texture direct buffer. * @return the position of the copy in the texture buffer or -1 if the given buffer could not be copied in the * direct buffer. */ public synchronized int addTexture( FloatBuffer textureBuffer ) { return addBuffer( this.textureBuffer, textureBuffer ); }
/** * Add the given {@link FloatBuffer} to the direct coordinates buffer, if the direct coordinate buffer does not have * the capacity this method will return -1; * * @param coordBuffer * to add to the coordinates direct buffer. * @return the position of the copy in the coordinate buffer or -1 if the given buffer could not be copied in the * direct buffer. */ public synchronized int addCoordinates( FloatBuffer coordBuffer ) { return addBuffer( this.coordBuffer, coordBuffer ); }
/** * Add the given {@link FloatBuffer} to the direct coordinates buffer, if the direct normal buffer does not have the * capacity this method will return -1; * * @param normalBuffer * to add to the normal direct buffer. * @return the position of the copy in the coordinate buffer or -1 if the given buffer could not be copied in the * direct buffer. */ public synchronized int addNormals( FloatBuffer normalBuffer ) { return addBuffer( this.normalBuffer, normalBuffer ); }