Represents a group of palettes. More...
#include <snes_palette.h>
Public Member Functions | |
PaletteGroup ()=default | |
void | AddPalette (SnesPalette pal) |
void | AddColor (SnesColor color) |
void | clear () |
void | SetName (const std::string &name) |
auto | name () const |
auto | size () const |
auto | mutable_palette (int i) |
auto | palette (int i) const |
SnesPalette | operator[] (int i) |
const SnesPalette & | operator[] (int i) const |
Private Attributes | |
std::string | name_ |
std::vector< SnesPalette > | palettes |
Represents a group of palettes.
Supports adding palettes and colors, clearing the group, and accessing palettes and colors by index.
Definition at line 192 of file snes_palette.h.
|
default |
|
inline |
Definition at line 195 of file snes_palette.h.
References palettes.
Referenced by yaze::app::gfx::CreatePaletteGroupFromColFile(), yaze::app::gfx::CreatePaletteGroupFromLargePalette(), yaze::app::gfx::palette_group_internal::Load3DObjectPalettes(), yaze::app::gfx::palette_group_internal::LoadArmorPalettes(), yaze::app::gfx::palette_group_internal::LoadDungeonMainPalettes(), yaze::app::gfx::palette_group_internal::LoadGlobalSpritePalettes(), yaze::app::gfx::palette_group_internal::LoadHUDPalettes(), yaze::app::gfx::palette_group_internal::LoadOverworldAnimatedPalettes(), yaze::app::gfx::palette_group_internal::LoadOverworldAuxiliaryPalettes(), yaze::app::gfx::palette_group_internal::LoadOverworldMainPalettes(), yaze::app::gfx::palette_group_internal::LoadOverworldMiniMapPalettes(), yaze::app::gfx::palette_group_internal::LoadShieldPalettes(), yaze::app::gfx::palette_group_internal::LoadSpriteAux1Palettes(), yaze::app::gfx::palette_group_internal::LoadSpriteAux2Palettes(), yaze::app::gfx::palette_group_internal::LoadSpriteAux3Palettes(), and yaze::app::gfx::palette_group_internal::LoadSwordPalettes().
|
inline |
Definition at line 197 of file snes_palette.h.
References palettes.
Referenced by yaze::app::gfx::palette_group_internal::LoadGrassColors().
|
inline |
Definition at line 204 of file snes_palette.h.
References palettes.
Referenced by yaze::app::gfx::PaletteGroupMap::clear(), and yaze::app::editor::GraphicsEditor::DrawPaletteControls().
|
inline |
|
inline |
|
inline |
Definition at line 207 of file snes_palette.h.
References palettes.
Referenced by yaze::app::editor::GraphicsEditor::DrawPaletteControls(), yaze::app::editor::PaletteEditor::DrawPaletteGroup(), and yaze::app::gfx::PaletteGroupMap::empty().
|
inline |
Definition at line 208 of file snes_palette.h.
References palettes.
Referenced by yaze::app::editor::PaletteEditor::DrawPaletteGroup(), and yaze::app::Rom::mutable_dungeon_palette().
|
inline |
Definition at line 209 of file snes_palette.h.
References palettes.
|
inline |
Definition at line 211 of file snes_palette.h.
References palettes.
|
inline |
Definition at line 219 of file snes_palette.h.
References palettes.
|
private |
Definition at line 228 of file snes_palette.h.
|
private |
Definition at line 229 of file snes_palette.h.
Referenced by AddColor(), AddPalette(), clear(), mutable_palette(), operator[](), operator[](), palette(), and size().