Code example for ShortBuffer

Methods: limit

0
		return 0; 
	} 
 
	/** @return the number of indices currently stored in this buffer */ 
	public int getNumIndices () { 
		return buffer.limit();
	} 
 
	/** @return the maximum number of indices this IndexBufferObject can store. */ 
	public int getNumMaxIndices () { 
		return buffer.capacity();
	} 
 
	/** <p> 
	 * Sets the indices of this IndexBufferObject, discarding the old indices. The count must equal the number of indices to be 
	 * copied to this IndexBufferObject. 
	 * </p> 
	 *  
	 * <p> 
	 * This can be called in between calls to {@link #bind()} and {@link #unbind()}. The index data will be updated instantly. 
	 * </p>