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

◆ LoadTilemap() [3/3]

void SRL::VDP2::RBG0::LoadTilemap ( SRL::Tilemap::ITilemap & tilemapA,
SRL::Tilemap::ITilemap & tilemapB,
VDP2::RotationMode modeA,
VDP2::RotationMode modeB,
bool LoadPalette = true )
inlinestatic

Load and configure both a Primary and Secondary Tilemap.

Overload to load and configure both primary and secondary tilemaps on RBG0. The SwitchMode will be initialized to UsePerspective. Use SetSwitchMode() after loading to change the setting if desired.

Parameters
tilemapAThe tilemap to load to Primary Tilemap (A)
tilemapBThe tilemap to load to Secondary Tilemap (B)
modeAThe rotation mode to configure for primary map (RA)
modeBThe rotation mode to configure for secondary map (RB)
LoadPalette(optional) set false to disable auto loading of palette data (default = true)
Note
-Due to shared registers, the Secondary Tilemap must have the same underlying data format as the Primary Tilemap (color depth, tile size, map data type). Furthermore its data must be able to fit within the same Reserved VRAM banks as the corresponding primary data ((celDataA + celDataB) <= 0x20000 bytes and (mapDataA+mapDataB)<=0x20000 bytes).
-See VDP2::Switchmode documentation for limits on rotation modes for A and B under various conditions.