SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Bmp2Tile()

SRL::Tilemap::Interfaces::Bmp2Tile::Bmp2Tile ( SRL::Bitmap::IBitmap & bmp,
uint8_t pages = 1 )
inline

Create a Tilemap out of an existing Bitmap.

Parameters
bmpThe Bitmap Image to convert
pagesthe number of pages available to the resulting tilemap
Note
A page is a unit of map data representing the tiling af a 512x512 pixel region (32x32 or 64x64 tiles depending on the base tile size). The resulting Tilemap always Contains at least 1 page with the default mapping of all tiles extracted from the bitmap, but more pages can be reserved here for further use