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

◆ SetRotationMode() [1/2]

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

Select what type of rotation to use for the rotating scroll.

This initializes both Primary and Secondary parameters to the same mode. Use the overload to initialize separate modes for each.

Parameters
modeThe RotationMode to use for RBG0
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.