/** Reads floats from the current position into the specified float array and increases the position by the number of floats * read. * <p> * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. * </p> * * @param dest the destination float array. * @return this buffer. * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. * @since Android 1.0 */ public FloatBuffer get (float[] dest) { return get(dest, 0, dest.length); }
/** Reads floats from the current position into the specified float array and increases the position by the number of floats * read. * <p> * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. * </p> * * @param dest the destination float array. * @return this buffer. * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. * @since Android 1.0 */ public FloatBuffer get (float[] dest) { return get(dest, 0, dest.length); }
@Override public void glTexParameterfv (int target, int pname, FloatBuffer params) { gl.texParameterf(target, pname, params.get()); }
@Override public void glTexParameterfv (int target, int pname, FloatBuffer params) { gl.texParameterf(target, pname, params.get()); }
public void glVertexAttrib1fv (int indx, FloatBuffer values) { GL20.glVertexAttrib1f(indx, values.get()); }
public void glVertexAttrib1fv (int indx, FloatBuffer values) { GL20.glVertexAttrib1f(indx, values.get()); }
public void glVertexAttrib1fv (int indx, FloatBuffer values) { GL20.glVertexAttrib1f(indx, values.get()); }
public void glVertexAttrib1fv (int indx, FloatBuffer values) { GL20.glVertexAttrib1f(indx, values.get()); }
public Float32Array copy (FloatBuffer buffer) { if (GWT.isProdMode()) { return ((Float32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining()); } else { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { floatBuffer.set(j, buffer.get(i)); } return floatBuffer.subarray(0, buffer.remaining()); } }
public Float32Array copy (FloatBuffer buffer) { if (GWT.isProdMode()) { return ((Float32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining()); } else { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { floatBuffer.set(j, buffer.get(i)); } return floatBuffer.subarray(0, buffer.remaining()); } }