1#ifndef YAZE_APP_EDITOR_GRAPHICS_GFX_GROUP_EDITOR_INTERNAL_H_
2#define YAZE_APP_EDITOR_GRAPHICS_GFX_GROUP_EDITOR_INTERNAL_H_
33 if (sheet.
surface() ==
nullptr) {
39 if (sheet.
texture() ==
nullptr) {
69 if (group ==
nullptr || group->
size() == 0) {
72 const size_t resolved_index =
75 if (palette ==
nullptr || palette->
empty()) {
void QueueTextureCommand(TextureCommandType type, Bitmap *bitmap)
Represents a bitmap image optimized for SNES ROM hacking.
TextureHandle texture() const
BitmapMetadata & metadata()
void set_active(bool active)
void SetPalette(const SnesPalette &palette)
Set the palette for the bitmap using SNES palette format.
SDL_Surface * surface() const
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
void EnsureSheetTextureQueued(gfx::Bitmap &sheet)
bool ApplyRoleDefaultPalette(gfx::Bitmap &sheet, gfx::SheetRole role, gfx::PaletteGroupMap &palette_groups)
SheetRolePaletteBinding DefaultBindingFor(SheetRole role)
Represents a mapping of palette groups.
PaletteGroup * get_group(const std::string &group_name)
Represents a group of palettes.
auto mutable_palette(int i)
uint8_t default_sub_index
std::string_view palette_group_name