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

◆ SetRotationMode() [2/2]

void SRL::VDP2::RBG0::SetRotationMode ( VDP2::RotationMode modeA,
VDP2::RotationMode modeB,
bool vblank = true )
inlinestatic

Overload to select separate rotation modes for both the primary and secondary rotating planes.

Parameters
modeAThe RotationMode to use for primary tilemap
modeBThe RotationMode to use for secondary tilemap
vblank(Optional) Chose to update VRAM at VBLANK to reduce amount of stored coefficient data required (default = true). When 2 or 3 axis rotation is selected, VRAM is allocated to store the required scaling coefficients. If vblank is set false, all possible coefficients will be statically stored in VRAM as a 0x18000 byte table. If vblank is set true, select coefficients for the next frame's perspective will be dynamically written to VRAM during Vblank, reducing the VRAM footprint to 0x2000 bytes per rotation parameter. If this transfer can not complete within the Vblank window screen tearing may be visible in the plane.