public static IntBuffer createIntBuffer(int size) {
        IntBuffer buf = allocator.allocate(4 * size).order(ByteOrder.nativeOrder()).asIntBuffer();
        buf.clear();
        onBufferAllocated(buf);
        return buf;
    }
Create a new IntBuffer of the specified size.

@param size
           required number of ints to store.
@return the new IntBuffer
jme3-core/src/main/java/com/jme3/util/BufferUtils.java