yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx Namespace Reference

Contains classes for handling graphical data. More...

Namespaces

namespace  anonymous_namespace{bitmap.cc}
 
namespace  lc_lz2
 Contains the LC_LZ2 compression algorithm.
 
namespace  palette_group_internal
 Internal functions for loading palettes by group.
 
namespace  scad_format
 Loading from prototype SCAD format.
 

Classes

class  Bitmap
 Represents a bitmap image. More...
 
class  GfxContext
 Shared graphical context across editors. More...
 
class  GraphicsBuffer
 
struct  InternalTile16
 
class  OamTile
 Object Attribute Memory tile abstraction container. More...
 
struct  PaletteGroup
 Represents a group of palettes. More...
 
struct  PaletteGroupMap
 Represents a mapping of palette groups. More...
 
struct  Paletteset
 Represents a set of palettes used in a SNES graphics system. More...
 
struct  SDL_Surface_Deleter
 Deleter for SDL_Surface. More...
 
struct  SDL_Texture_Deleter
 Deleter for SDL_Texture. More...
 
class  SnesColor
 SNES Color container. More...
 
class  SnesPalette
 Represents a palette of colors for the Super Nintendo Entertainment System (SNES). More...
 
class  Tile16
 Tile composition of four 8x8 tiles. More...
 
class  Tile32
 Tile composition of four 16x16 tiles. More...
 
class  TileInfo
 SNES 16-bit tile metadata container. More...
 
class  Tilesheet
 Represents a tilesheet, which is a collection of tiles stored in a bitmap. More...
 

Typedefs

using BitmapTable = std::unordered_map<int, gfx::Bitmap>
 

Enumerations

enum  BitmapFormat { kIndexed = 0 , k2bpp = 1 , k4bpp = 2 , k8bpp = 3 }
 
enum  PaletteCategory {
  kSword , kShield , kClothes , kWorldColors ,
  kAreaColors , kGlobalSprites , kSpritesAux1 , kSpritesAux2 ,
  kSpritesAux3 , kDungeons , kWorldMap , kDungeonMap ,
  kTriforce , kCrystal
}
 
enum class  TileType { Tile8 , Tile16 }
 

Functions

std::vector< uint8_t > HyruleMagicCompress (uint8_t const *const src, int const oldsize, int *const size, int const flag)
 
std::vector< uint8_t > HyruleMagicDecompress (uint8_t const *src, int *const size, int const p_big_endian)
 
snes_color ConvertSnesToRgb (uint16_t color_snes)
 
uint16_t ConvertRgbToSnes (const snes_color &color)
 
uint16_t ConvertRgbToSnes (const ImVec4 &color)
 
SnesColor ReadColorFromRom (int offset, const uint8_t *rom)
 
std::vector< snes_colorExtract (const char *data, unsigned int offset, unsigned int palette_size)
 
std::vector< char > Convert (const std::vector< snes_color > &palette)
 
SnesColor GetCgxColor (uint16_t color)
 
std::vector< SnesColorGetColFileData (uint8_t *data)
 
uint32_t GetPaletteAddress (const std::string &group_name, size_t palette_index, size_t color_index)
 
SnesPalette ReadPaletteFromRom (int offset, int num_colors, const uint8_t *rom)
 
std::array< float, 4 > ToFloatArray (const SnesColor &color)
 
absl::StatusOr< PaletteGroupCreatePaletteGroupFromColFile (std::vector< SnesColor > &palette_rows)
 
absl::StatusOr< PaletteGroupCreatePaletteGroupFromLargePalette (SnesPalette &palette, int num_colors=8)
 Take a SNESPalette, divide it into palettes of 8 colors.
 
absl::Status LoadAllPalettes (const std::vector< uint8_t > &rom_data, PaletteGroupMap &groups)
 Loads all the palettes for the game.
 
snes_tile8 UnpackBppTile (const std::vector< uint8_t > &data, const uint32_t offset, const uint32_t bpp)
 
std::vector< uint8_t > PackBppTile (const snes_tile8 &tile, const uint32_t bpp)
 
std::vector< uint8_t > ConvertBpp (const std::vector< uint8_t > &tiles, uint32_t from_bpp, uint32_t to_bpp)
 
std::vector< uint8_t > Convert3bppTo4bpp (const std::vector< uint8_t > &tiles)
 
std::vector< uint8_t > Convert4bppTo3bpp (const std::vector< uint8_t > &tiles)
 
std::vector< uint8_t > SnesTo8bppSheet (const std::vector< uint8_t > &sheet, int bpp, int num_sheets)
 
std::vector< uint8_t > Bpp8SnesToIndexed (std::vector< uint8_t > data, uint64_t bpp)
 
uint16_t TileInfoToWord (TileInfo tile_info)
 
TileInfo WordToTileInfo (uint16_t word)
 
uint16_t TileInfoToShort (TileInfo tile_info)
 
TileInfo GetTilesInfo (uint16_t tile)
 
void CopyTile8bpp16 (int x, int y, int tile, std::vector< uint8_t > &bitmap, std::vector< uint8_t > &blockset)
 
absl::StatusOr< TilesheetCreateTilesheetFromGraphicsBuffer (const uint8_t *graphics_buffer, int width, int height, TileType tile_type, int sheet_id)
 

Variables

constexpr Uint32 SNES_PIXELFORMAT_INDEXED
 
constexpr Uint32 SNES_PIXELFORMAT_2BPP
 
constexpr Uint32 SNES_PIXELFORMAT_4BPP
 
constexpr Uint32 SNES_PIXELFORMAT_8BPP
 
constexpr uint16_t SNES_RED_MASK = 32
 
constexpr uint16_t SNES_GREEN_MASK = 32
 
constexpr uint16_t SNES_BLUE_MASK = 32
 
constexpr uint16_t SNES_GREEN_SHIFT = 32
 
constexpr uint16_t SNES_BLUE_SHIFT = 1024
 
constexpr int NumberOfColors = 3143
 
constexpr uint8_t kColorByteMax = 255
 
constexpr float kColorByteMaxF = 255.f
 
const absl::flat_hash_map< std::string, uint32_t > kPaletteGroupAddressMap
 
const absl::flat_hash_map< std::string, uint32_t > kPaletteGroupColorCounts
 
constexpr int kNumPalettes = 14
 
constexpr const char * kPaletteGroupAddressesKeys []
 
constexpr int kOverworldPaletteMain = 0xDE6C8
 
constexpr int kOverworldPaletteAux = 0xDE86C
 
constexpr int kOverworldPaletteAnimated = 0xDE604
 
constexpr int kGlobalSpritesLW = 0xDD218
 
constexpr int kGlobalSpritePalettesDW = 0xDD290
 
constexpr int kArmorPalettes = 0xDD308
 
constexpr int kSpritesPalettesAux1 = 0xDD39E
 
constexpr int kSpritesPalettesAux2 = 0xDD446
 
constexpr int kSpritesPalettesAux3 = 0xDD4E0
 
constexpr int kSwordPalettes = 0xDD630
 
constexpr int kShieldPalettes = 0xDD648
 
constexpr int kHudPalettes = 0xDD660
 
constexpr int kDungeonMapPalettes = 0xDD70A
 
constexpr int kDungeonMainPalettes = 0xDD734
 
constexpr int kDungeonMapBgPalettes = 0xDE544
 
constexpr int kHardcodedGrassLW = 0x5FEA9
 
constexpr int kHardcodedGrassDW = 0x05FEB3
 
constexpr int kHardcodedGrassSpecial = 0x75640
 
constexpr int kOverworldMiniMapPalettes = 0x55B27
 
constexpr int kTriforcePalette = 0x64425
 
constexpr int kCrystalPalette = 0xF4CD3
 
constexpr int CustomAreaSpecificBGPalette = 0x140000
 
constexpr int CustomAreaSpecificBGASM = 0x140150
 
constexpr int kCustomAreaSpecificBGEnabled = 0x140140
 
constexpr uint16_t TilePriorityBit = 0x2000
 
constexpr uint16_t TileHFlipBit = 0x4000
 
constexpr uint16_t TileVFlipBit = 0x8000
 
constexpr uint16_t TileNameMask = 0x03FF
 
constexpr int kTilesheetWidth = 128
 
constexpr int kTilesheetHeight = 32
 
constexpr int kTilesheetDepth = 8
 
constexpr uint8_t kGraphicsBitmap [8]
 

Detailed Description

Contains classes for handling graphical data.

Typedef Documentation

◆ BitmapTable

using yaze::gfx::BitmapTable = std::unordered_map<int, gfx::Bitmap>

Definition at line 193 of file bitmap.h.

Enumeration Type Documentation

◆ BitmapFormat

Enumerator
kIndexed 
k2bpp 
k4bpp 
k8bpp 

Definition at line 38 of file bitmap.h.

◆ PaletteCategory

Enumerator
kSword 
kShield 
kClothes 
kWorldColors 
kAreaColors 
kGlobalSprites 
kSpritesAux1 
kSpritesAux2 
kSpritesAux3 
kDungeons 
kWorldMap 
kDungeonMap 
kTriforce 
kCrystal 

Definition at line 22 of file snes_palette.h.

◆ TileType

enum class yaze::gfx::TileType
strong
Enumerator
Tile8 
Tile16 

Definition at line 14 of file tilesheet.h.

Function Documentation

◆ HyruleMagicCompress()

std::vector< uint8_t > yaze::gfx::HyruleMagicCompress ( uint8_t const *const src,
int const oldsize,
int *const size,
int const flag )

◆ HyruleMagicDecompress()

std::vector< uint8_t > yaze::gfx::HyruleMagicDecompress ( uint8_t const * src,
int *const size,
int const p_big_endian )

Definition at line 167 of file compression.cc.

References yaze::zelda3::ldle16b(), and yaze::zelda3::stle16b().

Referenced by yaze::zelda3::Overworld::DecompressAllMapTiles().

Here is the call graph for this function:

◆ ConvertSnesToRgb()

◆ ConvertRgbToSnes() [1/2]

◆ ConvertRgbToSnes() [2/2]

uint16_t yaze::gfx::ConvertRgbToSnes ( const ImVec4 & color)

Definition at line 40 of file snes_color.cc.

References snes_color::blue, ConvertRgbToSnes(), snes_color::green, kColorByteMax, and snes_color::red.

Here is the call graph for this function:

◆ ReadColorFromRom()

SnesColor yaze::gfx::ReadColorFromRom ( int offset,
const uint8_t * rom )

◆ Extract()

std::vector< snes_color > yaze::gfx::Extract ( const char * data,
unsigned int offset,
unsigned int palette_size )

Definition at line 58 of file snes_color.cc.

References ConvertSnesToRgb().

Here is the call graph for this function:

◆ Convert()

std::vector< char > yaze::gfx::Convert ( const std::vector< snes_color > & palette)

Definition at line 69 of file snes_color.cc.

References ConvertRgbToSnes().

Referenced by yaze::test::TEST().

Here is the call graph for this function:

◆ GetCgxColor()

SnesColor yaze::gfx::GetCgxColor ( uint16_t color)

Definition at line 79 of file snes_color.cc.

References yaze::gfx::SnesColor::set_rgb().

Referenced by GetColFileData().

Here is the call graph for this function:

◆ GetColFileData()

std::vector< SnesColor > yaze::gfx::GetColFileData ( uint8_t * data)

Definition at line 89 of file snes_color.cc.

References GetCgxColor().

Referenced by yaze::editor::GraphicsEditor::DrawPaletteControls().

Here is the call graph for this function:

◆ GetPaletteAddress()

uint32_t yaze::gfx::GetPaletteAddress ( const std::string & group_name,
size_t palette_index,
size_t color_index )

Definition at line 208 of file snes_palette.cc.

References kPaletteGroupAddressMap, and kPaletteGroupColorCounts.

Referenced by yaze::Rom::SavePalette().

◆ ReadPaletteFromRom()

◆ ToFloatArray()

std::array< float, 4 > yaze::gfx::ToFloatArray ( const SnesColor & color)

Definition at line 290 of file snes_palette.cc.

References yaze::gfx::SnesColor::rgb().

Referenced by yaze::editor::PaletteEditor::HandleColorPopup().

Here is the call graph for this function:

◆ CreatePaletteGroupFromColFile()

absl::StatusOr< PaletteGroup > yaze::gfx::CreatePaletteGroupFromColFile ( std::vector< SnesColor > & palette_rows)

Definition at line 299 of file snes_palette.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::PaletteGroup::AddPalette().

Referenced by yaze::editor::GraphicsEditor::DrawPaletteControls().

Here is the call graph for this function:

◆ CreatePaletteGroupFromLargePalette()

absl::StatusOr< PaletteGroup > yaze::gfx::CreatePaletteGroupFromLargePalette ( SnesPalette & palette,
int num_colors )

Take a SNESPalette, divide it into palettes of 8 colors.

Definition at line 312 of file snes_palette.cc.

References yaze::gfx::SnesPalette::AddColor(), yaze::gfx::PaletteGroup::AddPalette(), and yaze::gfx::SnesPalette::size().

Referenced by yaze::editor::DungeonEditor::Initialize().

Here is the call graph for this function:

◆ LoadAllPalettes()

◆ UnpackBppTile()

snes_tile8 yaze::gfx::UnpackBppTile ( const std::vector< uint8_t > & data,
const uint32_t offset,
const uint32_t bpp )

Definition at line 25 of file snes_tile.cc.

References snes_tile8::data.

Referenced by ConvertBpp().

◆ PackBppTile()

std::vector< uint8_t > yaze::gfx::PackBppTile ( const snes_tile8 & tile,
const uint32_t bpp )

Definition at line 82 of file snes_tile.cc.

References snes_tile8::data.

Referenced by ConvertBpp().

◆ ConvertBpp()

std::vector< uint8_t > yaze::gfx::ConvertBpp ( const std::vector< uint8_t > & tiles,
uint32_t from_bpp,
uint32_t to_bpp )

Definition at line 129 of file snes_tile.cc.

References PackBppTile(), and UnpackBppTile().

Referenced by Convert3bppTo4bpp(), Convert4bppTo3bpp(), and yaze::gfx::GraphicsBuffer::to_bpp().

Here is the call graph for this function:

◆ Convert3bppTo4bpp()

std::vector< uint8_t > yaze::gfx::Convert3bppTo4bpp ( const std::vector< uint8_t > & tiles)

Definition at line 143 of file snes_tile.cc.

References ConvertBpp().

Here is the call graph for this function:

◆ Convert4bppTo3bpp()

std::vector< uint8_t > yaze::gfx::Convert4bppTo3bpp ( const std::vector< uint8_t > & tiles)

Definition at line 147 of file snes_tile.cc.

References ConvertBpp().

Here is the call graph for this function:

◆ SnesTo8bppSheet()

◆ Bpp8SnesToIndexed()

std::vector< uint8_t > yaze::gfx::Bpp8SnesToIndexed ( std::vector< uint8_t > data,
uint64_t bpp )

Definition at line 211 of file snes_tile.cc.

Referenced by yaze::gfx::scad_format::LoadCgx(), and yaze::SaveAllGraphicsData().

◆ TileInfoToWord()

◆ WordToTileInfo()

TileInfo yaze::gfx::WordToTileInfo ( uint16_t word)

◆ TileInfoToShort()

◆ GetTilesInfo()

◆ CopyTile8bpp16()

void yaze::gfx::CopyTile8bpp16 ( int x,
int y,
int tile,
std::vector< uint8_t > & bitmap,
std::vector< uint8_t > & blockset )

Definition at line 388 of file snes_tile.cc.

Referenced by yaze::zelda3::OverworldMap::BuildBitmap().

◆ CreateTilesheetFromGraphicsBuffer()

absl::StatusOr< Tilesheet > yaze::gfx::CreateTilesheetFromGraphicsBuffer ( const uint8_t * graphics_buffer,
int width,
int height,
TileType tile_type,
int sheet_id )

Definition at line 12 of file tilesheet.cc.

References yaze::gfx::Tilesheet::Init(), and yaze::gfx::Tilesheet::mutable_bitmap().

Here is the call graph for this function:

Variable Documentation

◆ SNES_PIXELFORMAT_INDEXED

Uint32 yaze::gfx::SNES_PIXELFORMAT_INDEXED
constexpr
Initial value:
=
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX8, 0, 0, 8, 1)

Definition at line 23 of file bitmap.h.

◆ SNES_PIXELFORMAT_2BPP

Uint32 yaze::gfx::SNES_PIXELFORMAT_2BPP
constexpr
Initial value:
= SDL_DEFINE_PIXELFORMAT(
SDL_PIXELTYPE_INDEX8, 0,
0, 2, 1)

Definition at line 26 of file bitmap.h.

Referenced by yaze::gfx::anonymous_namespace{bitmap.cc}::GetSnesPixelFormat().

◆ SNES_PIXELFORMAT_4BPP

Uint32 yaze::gfx::SNES_PIXELFORMAT_4BPP
constexpr
Initial value:
= SDL_DEFINE_PIXELFORMAT(
SDL_PIXELTYPE_INDEX8, 0,
0, 4, 1)

Definition at line 30 of file bitmap.h.

Referenced by yaze::gfx::anonymous_namespace{bitmap.cc}::GetSnesPixelFormat().

◆ SNES_PIXELFORMAT_8BPP

Uint32 yaze::gfx::SNES_PIXELFORMAT_8BPP
constexpr
Initial value:
= SDL_DEFINE_PIXELFORMAT(
SDL_PIXELTYPE_INDEX8, 0,
0, 8, 1)

Definition at line 34 of file bitmap.h.

Referenced by yaze::gfx::anonymous_namespace{bitmap.cc}::GetSnesPixelFormat().

◆ SNES_RED_MASK

uint16_t yaze::gfx::SNES_RED_MASK = 32
constexpr

Definition at line 12 of file snes_color.cc.

Referenced by ConvertSnesToRgb().

◆ SNES_GREEN_MASK

uint16_t yaze::gfx::SNES_GREEN_MASK = 32
constexpr

Definition at line 13 of file snes_color.cc.

Referenced by ConvertSnesToRgb().

◆ SNES_BLUE_MASK

uint16_t yaze::gfx::SNES_BLUE_MASK = 32
constexpr

Definition at line 14 of file snes_color.cc.

Referenced by ConvertSnesToRgb().

◆ SNES_GREEN_SHIFT

uint16_t yaze::gfx::SNES_GREEN_SHIFT = 32
constexpr

Definition at line 16 of file snes_color.cc.

Referenced by ConvertRgbToSnes().

◆ SNES_BLUE_SHIFT

uint16_t yaze::gfx::SNES_BLUE_SHIFT = 1024
constexpr

Definition at line 17 of file snes_color.cc.

Referenced by ConvertRgbToSnes(), and ConvertSnesToRgb().

◆ NumberOfColors

int yaze::gfx::NumberOfColors = 3143
constexpr

Definition at line 14 of file snes_color.h.

◆ kColorByteMax

uint8_t yaze::gfx::kColorByteMax = 255
constexpr

◆ kColorByteMaxF

float yaze::gfx::kColorByteMaxF = 255.f
constexpr

◆ kPaletteGroupAddressMap

const absl::flat_hash_map<std::string, uint32_t> yaze::gfx::kPaletteGroupAddressMap
Initial value:
= {
{"ow_main", kOverworldPaletteMain},
{"ow_aux", kOverworldPaletteAux},
{"ow_animated", kOverworldPaletteAnimated},
{"hud", kHudPalettes},
{"global_sprites", kGlobalSpritesLW},
{"armors", kArmorPalettes},
{"swords", kSwordPalettes},
{"shields", kShieldPalettes},
{"sprites_aux1", kSpritesPalettesAux1},
{"sprites_aux2", kSpritesPalettesAux2},
{"sprites_aux3", kSpritesPalettesAux3},
{"dungeon_main", kDungeonMainPalettes},
{"grass", kHardcodedGrassLW},
{"3d_object", kTriforcePalette},
{"ow_mini_map", kOverworldMiniMapPalettes},
}
constexpr int kHudPalettes
constexpr int kOverworldPaletteAux
constexpr int kHardcodedGrassLW
constexpr int kArmorPalettes
constexpr int kShieldPalettes
constexpr int kSpritesPalettesAux2
constexpr int kOverworldPaletteAnimated
constexpr int kOverworldMiniMapPalettes
constexpr int kOverworldPaletteMain
constexpr int kSwordPalettes
constexpr int kGlobalSpritesLW
constexpr int kSpritesPalettesAux1
constexpr int kSpritesPalettesAux3
constexpr int kDungeonMainPalettes
constexpr int kTriforcePalette

Definition at line 182 of file snes_palette.cc.

Referenced by GetPaletteAddress().

◆ kPaletteGroupColorCounts

const absl::flat_hash_map<std::string, uint32_t> yaze::gfx::kPaletteGroupColorCounts
Initial value:
= {
{"ow_main", 35}, {"ow_aux", 21}, {"ow_animated", 7},
{"hud", 32}, {"global_sprites", 60}, {"armors", 15},
{"swords", 3}, {"shields", 4}, {"sprites_aux1", 7},
{"sprites_aux2", 7}, {"sprites_aux3", 7}, {"dungeon_main", 90},
{"grass", 1}, {"3d_object", 8}, {"ow_mini_map", 128},
}

Definition at line 200 of file snes_palette.cc.

Referenced by GetPaletteAddress().

◆ kNumPalettes

int yaze::gfx::kNumPalettes = 14
constexpr

Definition at line 20 of file snes_palette.h.

Referenced by yaze::editor::PaletteEditor::Update().

◆ kPaletteGroupAddressesKeys

const char* yaze::gfx::kPaletteGroupAddressesKeys[]
constexpr
Initial value:
= {
"ow_main", "ow_aux", "ow_animated", "hud",
"global_sprites", "armors", "swords", "shields",
"sprites_aux1", "sprites_aux2", "sprites_aux3", "dungeon_main",
"grass", "3d_object", "ow_mini_map",
}

Definition at line 51 of file snes_palette.h.

Referenced by yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::gui::Canvas::DrawContextMenu(), yaze::editor::GraphicsEditor::DrawPaletteControls(), yaze::editor::GraphicsEditor::UpdatePaletteColumn(), and yaze_get_color_from_paletteset().

◆ kOverworldPaletteMain

int yaze::gfx::kOverworldPaletteMain = 0xDE6C8
constexpr

◆ kOverworldPaletteAux

int yaze::gfx::kOverworldPaletteAux = 0xDE86C
constexpr

◆ kOverworldPaletteAnimated

int yaze::gfx::kOverworldPaletteAnimated = 0xDE604
constexpr

◆ kGlobalSpritesLW

int yaze::gfx::kGlobalSpritesLW = 0xDD218
constexpr

◆ kGlobalSpritePalettesDW

int yaze::gfx::kGlobalSpritePalettesDW = 0xDD290
constexpr

◆ kArmorPalettes

int yaze::gfx::kArmorPalettes = 0xDD308
constexpr

< Green, Blue, Red, Bunny, Electrocuted (15 colors each)

Definition at line 65 of file snes_palette.h.

Referenced by yaze::gfx::palette_group_internal::LoadArmorPalettes().

◆ kSpritesPalettesAux1

int yaze::gfx::kSpritesPalettesAux1 = 0xDD39E
constexpr

◆ kSpritesPalettesAux2

int yaze::gfx::kSpritesPalettesAux2 = 0xDD446
constexpr

◆ kSpritesPalettesAux3

int yaze::gfx::kSpritesPalettesAux3 = 0xDD4E0
constexpr

◆ kSwordPalettes

int yaze::gfx::kSwordPalettes = 0xDD630
constexpr

Definition at line 69 of file snes_palette.h.

Referenced by yaze::gfx::palette_group_internal::LoadSwordPalettes().

◆ kShieldPalettes

int yaze::gfx::kShieldPalettes = 0xDD648
constexpr

◆ kHudPalettes

int yaze::gfx::kHudPalettes = 0xDD660
constexpr

Definition at line 71 of file snes_palette.h.

Referenced by yaze::gfx::palette_group_internal::LoadHUDPalettes().

◆ kDungeonMapPalettes

int yaze::gfx::kDungeonMapPalettes = 0xDD70A
constexpr

Definition at line 72 of file snes_palette.h.

◆ kDungeonMainPalettes

int yaze::gfx::kDungeonMainPalettes = 0xDD734
constexpr

◆ kDungeonMapBgPalettes

int yaze::gfx::kDungeonMapBgPalettes = 0xDE544
constexpr

Definition at line 76 of file snes_palette.h.

◆ kHardcodedGrassLW

int yaze::gfx::kHardcodedGrassLW = 0x5FEA9
constexpr

Definition at line 79 of file snes_palette.h.

Referenced by yaze::gfx::palette_group_internal::LoadGrassColors().

◆ kHardcodedGrassDW

int yaze::gfx::kHardcodedGrassDW = 0x05FEB3
constexpr

Definition at line 80 of file snes_palette.h.

Referenced by yaze::gfx::palette_group_internal::LoadGrassColors().

◆ kHardcodedGrassSpecial

int yaze::gfx::kHardcodedGrassSpecial = 0x75640
constexpr

Definition at line 81 of file snes_palette.h.

Referenced by yaze::gfx::palette_group_internal::LoadGrassColors().

◆ kOverworldMiniMapPalettes

int yaze::gfx::kOverworldMiniMapPalettes = 0x55B27
constexpr

◆ kTriforcePalette

int yaze::gfx::kTriforcePalette = 0x64425
constexpr

◆ kCrystalPalette

int yaze::gfx::kCrystalPalette = 0xF4CD3
constexpr

◆ CustomAreaSpecificBGPalette

int yaze::gfx::CustomAreaSpecificBGPalette = 0x140000
constexpr

< 2 bytes for each overworld area (320)

Definition at line 87 of file snes_palette.h.

◆ CustomAreaSpecificBGASM

int yaze::gfx::CustomAreaSpecificBGASM = 0x140150
constexpr

Definition at line 88 of file snes_palette.h.

◆ kCustomAreaSpecificBGEnabled

int yaze::gfx::kCustomAreaSpecificBGEnabled = 0x140140
constexpr

Definition at line 91 of file snes_palette.h.

◆ TilePriorityBit

uint16_t yaze::gfx::TilePriorityBit = 0x2000
constexpr

Definition at line 14 of file snes_tile.cc.

Referenced by GetTilesInfo(), and TileInfoToShort().

◆ TileHFlipBit

uint16_t yaze::gfx::TileHFlipBit = 0x4000
constexpr

Definition at line 17 of file snes_tile.cc.

Referenced by GetTilesInfo(), and TileInfoToShort().

◆ TileVFlipBit

uint16_t yaze::gfx::TileVFlipBit = 0x8000
constexpr

Definition at line 20 of file snes_tile.cc.

Referenced by GetTilesInfo(), and TileInfoToShort().

◆ TileNameMask

uint16_t yaze::gfx::TileNameMask = 0x03FF
constexpr

Definition at line 23 of file snes_tile.cc.

Referenced by GetTilesInfo(), and TileInfoToShort().

◆ kTilesheetWidth

◆ kTilesheetHeight

◆ kTilesheetDepth

◆ kGraphicsBitmap

uint8_t yaze::gfx::kGraphicsBitmap[8]
constexpr
Initial value:
= {0x80, 0x40, 0x20, 0x10,
0x08, 0x04, 0x02, 0x01}

Definition at line 19 of file snes_tile.h.

Referenced by SnesTo8bppSheet().