/** * Read the floats from the given {@link DataInputStream} to the direct coordinates buffer, if the direct coordinate * buffer does not have the capacity this method will return -1,-1; * * @param in * the stream to add to the coordinates from. * @return the position [0] of the copy in the coordinate buffer and the number of ordinates [1] inserted. Both will * have -1 if the given ordinates could not be copied in the direct buffer. * @throws IOException */ public synchronized int[] readCoordinates( DataInputStream in ) throws IOException { return readFromStreamBuffer( this.coordBuffer, in ); }
/** * Read the floats from the given {@link DataInputStream} to the direct normal buffer, if the direct normal buffer * does not have the capacity this method will return -1,-1; * * @param in * the stream to add to the coordinates from. * @return the position [0] of the copy in the normal buffer and the number of ordinates [1] inserted. Both will * have -1 if the given ordinates could not be copied in the direct buffer. * @throws IOException */ public synchronized int[] readNormals( DataInputStream in ) throws IOException { return readFromStreamBuffer( this.normalBuffer, in ); }
/** * Read the floats from the given {@link DataInputStream} to the direct texture buffer, if the direct texture buffer * does not have the capacity this method will return -1,-1; * * @param in * the stream to add to the coordinates from. * @return the position [0] of the copy in the texture buffer and the number of ordinates [1] inserted. Both will * have -1 if the given ordinates could not be copied in the direct buffer. * @throws IOException */ public synchronized int[] readTextureOrdinates( DataInputStream in ) throws IOException { return readFromStreamBuffer( this.textureBuffer, in ); }