MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / addEntry

Method addEntry

src/Abyss/DataTypes/Palette.cpp:49–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected