@Override public IntBufferData makeCopy() { final IntBufferData copy = new IntBufferData(); copy._buffer = BufferUtils.clone(_buffer); copy._vboAccessMode = _vboAccessMode; return copy; } }
@Override public IntBufferData makeCopy() { final IntBufferData copy = new IntBufferData(); copy._buffer = BufferUtils.clone(_buffer); copy._vboAccessMode = _vboAccessMode; return copy; } }
/** * Sets the index buffer. * * @param indices * the new index buffer */ public void setIndexBuffer(final IntBuffer indices) { if (indices == null) { _indexBuffer = null; } else { _indexBuffer = new IntBufferData(indices); } updatePrimitiveCounts(); }
/** * Sets the index buffer. * * @param indices * the new index buffer */ public void setIndexBuffer(final IntBuffer indices) { if (indices == null) { _indexBuffer = null; } else { _indexBuffer = new IntBufferData(indices); } updatePrimitiveCounts(); refreshInterleaved(); }
@Override public void read(final InputCapsule capsule) throws IOException { super.read(capsule); size = capsule.readInt("size", 0); stride = capsule.readInt("stride", 0); normalized = capsule.readBoolean("normalized", false); unsigned = capsule.readBoolean("unsigned", false); data = (IntBufferData) capsule.readSavable("data", null); // XXX: transitional if (data == null) { final IntBuffer buff = capsule.readIntBuffer("data", null); if (buff != null) { data = new IntBufferData(buff); } } } }
indices = new IntBufferData(BufferUtils.createIntBuffer(_splitIndices)); } else { indices.getBuffer().clear();
indices = new IntBufferData(BufferUtils.createIntBuffer(_splitIndices)); } else { indices.getBuffer().clear();
final IntBufferData data = new IntBufferData(group.getIndices().length); data.getBuffer().put(group.getIndices()); data.rewind();