PoolColorArray
Array of Color.
Description
Array specifically designed to hold Color. Optimized for memory usage, does not fragment the memory. Note: This type is passed by value and not by reference.
Methods
Method Descriptions
- PoolColorArray PoolColorArray ( Array from )
PoolColorArray. Optionally, you can pass in a generic Array that will be converted.
- append ( Color color ) push_back).
- append_array ( PoolColorArray array )
PoolColorArrayat the end of this array.
- bool empty ( )
trueif the array is empty.
- int insert ( int idx, Color color )
idx == size()).
- invert ( ) Reverses the order of the elements in the array.
- push_back ( Color color ) Appends a value to the array.
- remove ( int idx ) Removes an element from the array by index.
- resize ( int idx ) Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
- set ( int idx, Color color ) Color at the given index.
- int size ( ) Returns the size of the array.
