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

◆ ApplyVdp2Offsets()

void SRL::Tilemap::Interfaces::Bmp2Tile::ApplyVdp2Offsets ( uint32_t celOffset,
uint32_t palOffset = 0 )
inline

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)

Note
Do not use in conjuction with VDP2::ScrollScreen::LoadTilemap, as these offsets are applied automatically.
Parameters
celOffsetTile address offset to apply (obtain with VDP2::ScrollScreen::GetCelOffset())
palOffsetCRAM palette index to apply (obtain with VDP2::ScrollScreen::GetPalOffset())