/** Returns a string represents of the state of this int buffer. * * @return a string represents of the state of this int buffer. * @since Android 1.0 */ public String toString () { StringBuilder sb = new StringBuilder(); sb.append(getClass().getName()); sb.append(", status: capacity="); //$NON-NLS-1$ sb.append(capacity()); sb.append(" position="); //$NON-NLS-1$ sb.append(position()); sb.append(" limit="); //$NON-NLS-1$ sb.append(limit()); return sb.toString(); } }
/** Returns a string represents of the state of this int buffer. * * @return a string represents of the state of this int buffer. * @since Android 1.0 */ public String toString () { StringBuilder sb = new StringBuilder(); sb.append(getClass().getName()); sb.append(", status: capacity="); //$NON-NLS-1$ sb.append(capacity()); sb.append(" position="); //$NON-NLS-1$ sb.append(position()); sb.append(" limit="); //$NON-NLS-1$ sb.append(limit()); return sb.toString(); } }
/** * Checks the {@code errcode} present in the current position of the * specified {@code errcode_ret} buffer and throws an * {@link OpenCLException} if it's not equal to {@link CL10#CL_SUCCESS}. * * @param errcode_ret the {@code errcode} buffer * * @throws OpenCLException */ public static void checkCLError(IntBuffer errcode_ret) { checkCLError(errcode_ret.get(errcode_ret.position())); }
private IntBuffer toIntBuffer (int v[], int offset, int count) { ensureBufferCapacity(count << 2); intBuffer.clear(); intBuffer.limit(count); intBuffer.put(v, offset, count); intBuffer.position(0); return intBuffer; }
private IntBuffer toIntBuffer (int v[], int offset, int count) { ensureBufferCapacity(count << 2); intBuffer.clear(); intBuffer.limit(count); intBuffer.put(v, offset, count); intBuffer.position(0); return intBuffer; }
@Override public void alDeleteAuxiliaryEffectSlots(final int numEffectSlots, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numEffectSlots) throw new AssertionError(); EXTEfx.alDeleteAuxiliaryEffectSlots(buffers); }
public void alGenFilters(int numFilters, IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numFilters) throw new AssertionError(); EFX10.alGenFilters(buffers); }
public void alDeleteFilters(int numFilters, IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numFilters) throw new AssertionError(); EFX10.alDeleteFilters(buffers); }
public void alDeleteSources(int numSources, IntBuffer sources) { if (sources.position() != 0) throw new AssertionError(); if (sources.limit() != numSources) throw new AssertionError(); AL10.alDeleteSources(sources); }
public void alSourceQueueBuffers(int source, int numBuffers, IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numBuffers) throw new AssertionError(); AL10.alSourceQueueBuffers(source, buffers); }
@Override public void alGenAuxiliaryEffectSlots(final int numSlots, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numSlots) throw new AssertionError(); EXTEfx.alGenAuxiliaryEffectSlots(buffers); }
@Override public void alGenEffects(final int numEffects, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numEffects) throw new AssertionError(); EXTEfx.alGenEffects(buffers); }
@Override public void alDeleteEffects(final int numEffects, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numEffects) throw new AssertionError(); EXTEfx.alDeleteEffects(buffers); }
@Override public void alDeleteBuffers(final int numBuffers, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numBuffers) throw new AssertionError(); AL10.alDeleteBuffers(buffers); }
public void deleteBuffer(VertexBuffer vb) { int bufId = vb.getId(); if (bufId != -1) { // delete buffer intBuf1.put(0, bufId); intBuf1.position(0).limit(1); gl.glDeleteBuffers(intBuf1); vb.resetObject(); //statistics.onDeleteVertexBuffer(); } }
public Int32Array copy (IntBuffer buffer) { if (GWT.isProdMode()) { return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining()); } else { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { intBuffer.set(j, buffer.get(i)); } return intBuffer.subarray(0, buffer.remaining()); } }
public Int32Array copy (IntBuffer buffer) { if (GWT.isProdMode()) { return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining()); } else { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { intBuffer.set(j, buffer.get(i)); } return intBuffer.subarray(0, buffer.remaining()); } }
public void deleteImage(Image image) { int texId = image.getId(); if (texId != -1) { intBuf1.put(0, texId); intBuf1.position(0).limit(1); gl.glDeleteTextures(intBuf1); image.resetObject(); statistics.onDeleteTexture(); } }
public void deleteFilter(Filter filter) { int id = filter.getId(); if (id != -1) { ib.position(0).limit(1); ib.put(id).flip(); efx.alDeleteFilters(1, ib); filter.resetObject(); } }