| 47 | SDL_Color Palette::getSdlColor(const size_t index) const { return index == 0 ? SDL_Color{0, 0, 0, 0} : getEntry(index).getSdlColor(); } |
| 48 | |
| 49 | void Palette::addEntry(const PaletteEntry entry) { _entries.push_back(entry); } |
| 50 | |
| 51 | void Palette::addEntries(const std::vector<PaletteEntry> &newEntries) { |
| 52 | for (const auto &entry : newEntries) { |
nothing calls this directly
no outgoing calls
no test coverage detected