* Provides access to colors contained in the palette. * @param offset Offset to a specific color. * @return Pointer to the requested SDL_Color. */
| 86 | * @return Pointer to the requested SDL_Color. |
| 87 | */ |
| 88 | SDL_Color *Palette::getColors(int offset) const |
| 89 | { |
| 90 | return _colors + offset; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Converts an SDL_Color struct into an hexadecimal RGBA color value. |
no outgoing calls
no test coverage detected