Represents a mapping of palette groups. More...
#include <snes_palette.h>

Public Member Functions | |
| PaletteGroup * | get_group (const std::string &group_name) |
| const PaletteGroup * | get_group (const std::string &group_name) const |
| template<typename Func > | |
| absl::Status | for_each (Func &&func) |
| void | clear () |
| bool | empty () const |
Represents a mapping of palette groups.
Originally, this was an actual std::unordered_map but since the palette groups supported never change, it was changed to a struct with a method to get the group by name.
Definition at line 313 of file snes_palette.h.
|
inline |
Definition at line 330 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
Referenced by yaze::editor::PaletteControlsPanel::ApplyPaletteToAllSheets(), yaze::editor::PaletteControlsPanel::ApplyPaletteToSheet(), yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::editor::PaletteControlsPanel::DrawPaletteDisplay(), yaze::editor::PaletteEditor::DrawPaletteGroup(), yaze::editor::palette_utility::DrawPalettePreview(), yaze::gfx::PaletteManager::GetMutableGroup(), yaze::editor::OverworldMainPalettePanel::GetPaletteGroup(), yaze::editor::OverworldAnimatedPalettePanel::GetPaletteGroup(), yaze::editor::DungeonMainPalettePanel::GetPaletteGroup(), yaze::editor::SpritePalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux1PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux2PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux3PalettePanel::GetPaletteGroup(), yaze::editor::EquipmentPalettePanel::GetPaletteGroup(), getRomPaletteGroup(), yaze::cli::HandlePaletteExportLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::gfx::PaletteManager::Initialize(), and yaze_get_color_from_paletteset().
|
inline |
Definition at line 366 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
|
inline |
Definition at line 403 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_mini_map, RETURN_IF_ERROR, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
Referenced by yaze::Rom::SaveAllPalettes(), and yaze::zelda3::SaveGameData().
|
inline |
Definition at line 421 of file snes_palette.h.
References armors, yaze::gfx::PaletteGroup::clear(), dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, sprites_aux1, sprites_aux2, sprites_aux3, and swords.
Referenced by yaze::zelda3::GameData::Clear(), yaze::Rom::Close(), yaze::gui::PaletteEditorWidget::LoadROMPalettes(), and yaze::Rom::LoadZelda3().

|
inline |
Definition at line 439 of file snes_palette.h.
References armors, dungeon_main, global_sprites, grass, hud, object_3d, overworld_animated, overworld_aux, overworld_main, overworld_mini_map, shields, yaze::gfx::PaletteGroup::size(), sprites_aux1, sprites_aux2, sprites_aux3, and swords.
Referenced by yaze::zelda3::LoadGraphics().

| PaletteGroup yaze::gfx::PaletteGroupMap::overworld_main = {kPaletteGroupAddressesKeys[0]} |
Definition at line 314 of file snes_palette.h.
Referenced by yaze::editor::Tile16Editor::ApplyPaletteToCurrentTile16Bitmap(), clear(), empty(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadOverworldMainPalettes(), yaze::zelda3::OverworldMap::LoadPalette(), yaze::editor::Tile16Editor::PreviewPaletteChange(), yaze::test::RomDependentTestSuite::RunTile16EditorTest(), yaze::editor::Tile16Editor::SetCurrentTile(), and yaze::editor::Tile16Editor::UpdateLivePreview().
| PaletteGroup yaze::gfx::PaletteGroupMap::overworld_aux = {kPaletteGroupAddressesKeys[1]} |
Definition at line 315 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadOverworldAuxiliaryPalettes(), and yaze::zelda3::OverworldMap::LoadPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::overworld_animated = {kPaletteGroupAddressesKeys[2]} |
Definition at line 316 of file snes_palette.h.
Referenced by clear(), yaze::editor::GraphicsEditor::DecompressImportData(), empty(), for_each(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadOverworldAnimatedPalettes(), and yaze::zelda3::OverworldMap::LoadPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::hud = {kPaletteGroupAddressesKeys[3]} |
Definition at line 317 of file snes_palette.h.
Referenced by yaze::zelda3::Inventory::BuildTileset(), clear(), empty(), for_each(), get_group(), get_group(), yaze::editor::MessageEditor::Initialize(), yaze::zelda3::LoadGraphics(), yaze::gfx::palette_group_internal::LoadHUDPalettes(), and yaze::zelda3::OverworldMap::LoadPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::global_sprites = {kPaletteGroupAddressesKeys[4]} |
Definition at line 318 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadGlobalSpritePalettes(), yaze::editor::SpriteEditor::LoadSpritePalettes(), and yaze::zelda3::palette_internal::SetColorsPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::armors = {kPaletteGroupAddressesKeys[5]} |
Definition at line 319 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadArmorPalettes(), and yaze::zelda3::palette_internal::SetColorsPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::swords = {kPaletteGroupAddressesKeys[6]} |
Definition at line 320 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), and yaze::gfx::palette_group_internal::LoadSwordPalettes().
| PaletteGroup yaze::gfx::PaletteGroupMap::shields = {kPaletteGroupAddressesKeys[7]} |
Definition at line 321 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), and yaze::gfx::palette_group_internal::LoadShieldPalettes().
| PaletteGroup yaze::gfx::PaletteGroupMap::sprites_aux1 = {kPaletteGroupAddressesKeys[8]} |
Definition at line 322 of file snes_palette.h.
Referenced by clear(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), empty(), for_each(), get_group(), get_group(), yaze::zelda3::LoadGraphics(), yaze::gfx::palette_group_internal::LoadSpriteAux1Palettes(), yaze::editor::SpriteEditor::LoadSpritePalettes(), and yaze::zelda3::palette_internal::SetColorsPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::sprites_aux2 = {kPaletteGroupAddressesKeys[9]} |
Definition at line 323 of file snes_palette.h.
Referenced by clear(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), empty(), for_each(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadSpriteAux2Palettes(), and yaze::editor::SpriteEditor::LoadSpritePalettes().
| PaletteGroup yaze::gfx::PaletteGroupMap::sprites_aux3 = {kPaletteGroupAddressesKeys[10]} |
Definition at line 324 of file snes_palette.h.
Referenced by clear(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), empty(), for_each(), get_group(), get_group(), yaze::zelda3::OverworldMap::LoadPalette(), yaze::gfx::palette_group_internal::LoadSpriteAux3Palettes(), yaze::editor::SpriteEditor::LoadSpritePalettes(), and yaze::zelda3::palette_internal::SetColorsPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::dungeon_main = {kPaletteGroupAddressesKeys[11]} |
Definition at line 325 of file snes_palette.h.
Referenced by clear(), yaze::gui::PaletteEditorWidget::Draw(), yaze::gui::PaletteEditorWidget::DrawColorPicker(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonObjectSelector::DrawObjectAssetBrowser(), yaze::gui::PaletteEditorWidget::DrawPaletteSelector(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), yaze::Rom::dungeon_palette(), empty(), for_each(), get_group(), get_group(), yaze::emu::render::EmulatorRenderService::InjectRoomContext(), yaze::editor::DungeonEditorV2::Load(), yaze::editor::ScreenEditor::Load(), yaze::editor::DungeonRoomLoader::LoadAllRooms(), yaze::gfx::palette_group_internal::LoadDungeonMainPalettes(), yaze::zelda3::LoadDungeonMapGfxFromBinary(), yaze::zelda3::LoadDungeonMapTile16(), yaze::zelda3::LoadGraphics(), yaze::zelda3::Room::LoadLayoutTilesToBuffer(), yaze::emu::render::EmulatorRenderService::LoadPaletteIntoCgram(), yaze::Rom::mutable_dungeon_palette(), yaze::editor::DungeonEditorV2::OnRoomSelected(), yaze::emu::render::EmulatorRenderService::RenderDungeonObjectStatic(), yaze::zelda3::Room::RenderObjectsToBackground(), yaze::zelda3::Room::RenderRoomGraphics(), yaze::editor::DungeonObjectSelector::SelectObject(), yaze::gui::DungeonObjectEmulatorPreview::TriggerEmulatedRender(), and yaze::gui::DungeonObjectEmulatorPreview::TriggerStaticRender().
| PaletteGroup yaze::gfx::PaletteGroupMap::grass = {kPaletteGroupAddressesKeys[12]} |
Definition at line 326 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), yaze::gfx::palette_group_internal::LoadGrassColors(), and yaze::zelda3::OverworldMap::LoadPalette().
| PaletteGroup yaze::gfx::PaletteGroupMap::object_3d = {kPaletteGroupAddressesKeys[13]} |
Definition at line 327 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), and yaze::gfx::palette_group_internal::Load3DObjectPalettes().
| PaletteGroup yaze::gfx::PaletteGroupMap::overworld_mini_map = {kPaletteGroupAddressesKeys[14]} |
Definition at line 328 of file snes_palette.h.
Referenced by clear(), empty(), for_each(), get_group(), get_group(), and yaze::gfx::palette_group_internal::LoadOverworldMiniMapPalettes().