Interface to Convert Bitmap Image into Tilemap.
#include <srl_tilemap_interfaces.hpp>
Public Member Functions | |
| Bmp2Tile (SRL::Bitmap::IBitmap &bmp, uint8_t pages=1) | |
| Create a Tilemap out of an existing Bitmap. | |
| ~Bmp2Tile () | |
| Free allocated resources and destroy Bmp2Tile object. | |
| void | ApplyVdp2Offsets (uint32_t celOffset, uint32_t palOffset=0) |
| manually apply a cel offset and Palette offset to all map data for cases when bypassing built in VDP2 tilemap loading functions (such as when performing DMA transfers to VDP2 VRAM) | |
| void | ClearPage (int pageIndex) |
| clears all data of a page in the tilemap to zero | |
| void | CopyMap (uint8_t sourcePage, Tilemap::Coord topLeft, Tilemap::Coord botRight, uint8_t destPage, Tilemap::Coord destTile) |
| Copies a rectangular selection of Tilemap data between 2 pages in the tilemap. | |
| void | FreeCellData () |
| Frees The Work Ram associated with Cell Data in cases where it is no longer required. | |
| void | FreeMapData () |
| Frees The Work Ram associated with Map Data in cases where it is no longer required. | |
| void | FreePalData () |
| Frees The Work Ram associated with Pal Data in cases where it is no longer required. | |
| void * | GetCellData () override |
| Get Cell data(Tileset) | |
| TilemapInfo | GetInfo () override |
| Get Tilemap Info. | |
| void * | GetMapData () override |
| Get Map data(Tilemap) | |
| uint16_t * | GetPageAddress (uint8_t page, Tilemap::Coord &coord) |
| Get address of tilemap page. | |
| void * | GetPalData () override |
| Get Palette data. | |