ColorArray¶
Category: Built-In Types
Brief Description¶
Array of Colors
Member Functions¶
ColorArray | ColorArray ( Array from ) |
void | push_back ( Color color ) |
void | resize ( int idx ) |
void | set ( int idx, Color color ) |
int | size ( ) |
Description¶
Array of Color, can only contains colors. Optimized for memory usage, can’t fragment the memory.
Member Function Description¶
- ColorArray ColorArray ( Array from )
Create from a generic array.
- void push_back ( Color color )
Append a value to the array.
- void resize ( int idx )
Set the size of the ColorArray. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.
Change the Color at the given index.
- int size ( )
Return the array size.