yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
tilemap.h File Reference
#include "absl/container/flat_hash_map.h"
#include "app/gfx/backend/irenderer.h"
#include "app/gfx/bitmap.h"
#include "app/gfx/snes_tile.h"
#include <list>
#include <unordered_map>

Go to the source code of this file.

Classes

struct  yaze::gfx::Pair
 Simple 2D coordinate pair for tilemap dimensions. More...
 
struct  yaze::gfx::TileCache
 Smart tile cache with LRU eviction for efficient memory management. More...
 
struct  yaze::gfx::Tilemap
 Tilemap structure for SNES tile-based graphics management. More...
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::gfx
 Contains classes for handling graphical data.
 

Functions

std::vector< uint8_t > yaze::gfx::FetchTileDataFromGraphicsBuffer (const std::vector< uint8_t > &data, int tile_id, int sheet_offset)
 
Tilemap yaze::gfx::CreateTilemap (IRenderer *renderer, std::vector< uint8_t > &data, int width, int height, int tile_size, int num_tiles, SnesPalette &palette)
 
void yaze::gfx::UpdateTilemap (IRenderer *renderer, Tilemap &tilemap, const std::vector< uint8_t > &data)
 
void yaze::gfx::RenderTile (IRenderer *renderer, Tilemap &tilemap, int tile_id)
 
void yaze::gfx::RenderTile16 (IRenderer *renderer, Tilemap &tilemap, int tile_id)
 
void yaze::gfx::UpdateTile16 (IRenderer *renderer, Tilemap &tilemap, int tile_id)
 
void yaze::gfx::ModifyTile16 (Tilemap &tilemap, const std::vector< uint8_t > &data, const TileInfo &top_left, const TileInfo &top_right, const TileInfo &bottom_left, const TileInfo &bottom_right, int sheet_offset, int tile_id)
 
void yaze::gfx::ComposeTile16 (Tilemap &tilemap, const std::vector< uint8_t > &data, const TileInfo &top_left, const TileInfo &top_right, const TileInfo &bottom_left, const TileInfo &bottom_right, int sheet_offset)
 
std::vector< uint8_t > yaze::gfx::GetTilemapData (Tilemap &tilemap, int tile_id)
 
void yaze::gfx::RenderTilesBatch (IRenderer *renderer, Tilemap &tilemap, const std::vector< int > &tile_ids, const std::vector< std::pair< float, float > > &positions, const std::vector< std::pair< float, float > > &scales={})
 Render multiple tiles using atlas rendering for improved performance.