toGdxArray

inline fun <Type : Any> Iterable<Type>.toGdxArray(ordered: Boolean = true, initialCapacity: Int = defaultArraySize): GdxArray<Type>

Return

values copied from this iterable stored in a libGDX array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array.


inline fun <Type : Any> Array<Type>.toGdxArray(ordered: Boolean = true, initialCapacity: Int = this.size): GdxArray<Type>

Return

values copied from this array stored in a libGDX array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array. Defaults to this array size.


fun IntArray.toGdxArray(ordered: Boolean = true, initialCapacity: Int = this.size): GdxIntArray

Return

values copied from this array stored in an optimized libGDX int array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array. Defaults to this array size.


fun FloatArray.toGdxArray(ordered: Boolean = true, initialCapacity: Int = this.size): GdxFloatArray

Return

values copied from this array stored in an optimized libGDX float array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array. Defaults to this array size.


fun BooleanArray.toGdxArray(ordered: Boolean = true, initialCapacity: Int = this.size): GdxBooleanArray

Return

values copied from this array stored in an optimized libGDX boolean array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array. Defaults to this array size.


inline fun <Type : Any> GdxSet<Type>.toGdxArray(ordered: Boolean = true, initialCapacity: Int = this.size): GdxArray<Type>

Return

values copied from this set stored in a libGDX array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array. Defaults to set size.