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

◆ SetPriority()

void SRL::VDP2::SpriteLayer::SetPriority ( SRL::VDP2::Priority pr,
VDP2::SpriteBank bank = VDP2::SpriteBank::Bank0 )
inlinestatic

Set the priority Layers That sprites can select from in PR registers.

This function sets one of the 8 priority registers that a Palette sprite can reference (default bank0)

Note
-available registers vary by Palette code config- default can only pull from bank0 and bank1
-RGB sprites always use the priority from bank0
-During VDP2 init, priority bank0 and bank1 are initialized to Layer3 and Layer4 respectively
-Changing these priorities will result in differing behavior for sprite color calculation (See documentation of SpriteLayer::SetColorCondition() for more details)
Parameters
prenum VDP2::Priority Layer
bank(optional) enum VDP2::SpriteBank designating which priority bank to write to (default = Bank0)