Tilemap structure for SNES tile-based graphics management. More...
#include <tilemap.h>
Public Attributes | |
Bitmap | atlas |
Master bitmap containing all tiles. | |
TileCache | tile_cache |
Smart tile cache with LRU eviction. | |
std::vector< std::array< gfx::TileInfo, 4 > > | tile_info |
Tile metadata (4 tiles per 16x16) | |
Pair | tile_size |
Size of individual tiles (8x8 or 16x16) | |
Pair | map_size |
Size of tilemap in tiles. | |
Tilemap structure for SNES tile-based graphics management.
The Tilemap class provides comprehensive tile management for ROM hacking:
Key Features:
Performance Optimizations:
ROM Hacking Specific:
Bitmap yaze::gfx::Tilemap::atlas |
Master bitmap containing all tiles.
Definition at line 110 of file tilemap.h.
Referenced by yaze::editor::OverworldEditor::CheckForCurrentMap(), yaze::editor::Tile16Editor::CommitChangesToBlockset(), yaze::editor::Tile16Editor::CommitChangesToOverworld(), yaze::gfx::anonymous_namespace{tilemap.cc}::ComposeAndPlaceTilePart(), yaze::gfx::ComposeTile16(), yaze::editor::Tile16Editor::CopyTile16ToClipboard(), yaze::gfx::CreateTilemap(), yaze::gui::Canvas::DrawBitmapGroup(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::OverworldEditor::DrawOverworldEdits(), yaze::editor::OverworldEditor::DrawTile16Selector(), yaze::gui::Canvas::DrawTilemapPainter(), yaze::gui::canvas::CanvasInteractionHandler::DrawTilemapPainter(), yaze::gfx::GetTilemapData(), yaze::editor::Tile16Editor::IsTile16Valid(), yaze::zelda3::LoadDungeonMapTile16(), yaze::editor::OverworldEditor::LoadGraphics(), yaze::gfx::ModifyTile16(), yaze::editor::OverworldEditor::RefreshTile16Blockset(), yaze::editor::Tile16Editor::RefreshTile16Blockset(), yaze::gfx::RenderTile(), yaze::gfx::RenderTile16(), yaze::gfx::RenderTilesBatch(), yaze::editor::Tile16Editor::SetCurrentTile(), yaze::editor::Tile16Editor::UpdateBlocksetBitmap(), yaze::editor::Tile16Editor::UpdateOverworldTilemap(), yaze::gfx::UpdateTile16(), yaze::gfx::UpdateTilemap(), and yaze::editor::Tile16Editor::ValidateTile16Data().
TileCache yaze::gfx::Tilemap::tile_cache |
Smart tile cache with LRU eviction.
Definition at line 111 of file tilemap.h.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::gfx::RenderTilesBatch(), and yaze::gfx::UpdateTile16().
std::vector<std::array<gfx::TileInfo, 4> > yaze::gfx::Tilemap::tile_info |
Tile metadata (4 tiles per 16x16)
Definition at line 112 of file tilemap.h.
Referenced by yaze::gfx::ComposeTile16(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::gfx::ModifyTile16(), and yaze::zelda3::SaveDungeonMapTile16().
Pair yaze::gfx::Tilemap::tile_size |
Size of individual tiles (8x8 or 16x16)
Definition at line 113 of file tilemap.h.
Referenced by yaze::gfx::ComposeTile16(), yaze::gfx::CreateTilemap(), yaze::gui::Canvas::DrawBitmapGroup(), yaze::gui::Canvas::DrawTilemapPainter(), yaze::gui::canvas::CanvasInteractionHandler::DrawTilemapPainter(), yaze::gfx::GetTilemapData(), yaze::zelda3::LoadDungeonMapTile16(), yaze::gfx::ModifyTile16(), yaze::gfx::RenderTile16(), yaze::gfx::RenderTilesBatch(), and yaze::gfx::UpdateTile16().
Pair yaze::gfx::Tilemap::map_size |
Size of tilemap in tiles.
Definition at line 114 of file tilemap.h.
Referenced by yaze::gfx::CreateTilemap(), yaze::gui::Canvas::DrawBitmapGroup(), and yaze::zelda3::LoadDungeonMapTile16().