Loading...
Searching...
No Matches
OamDynamicConfig Struct Reference

Configuration for the dynamic sprite engine. More...

#include <sprite.h>

Public Attributes

u8 sizeMode
 
u16 slotLargeInit
 
u16 slotSmallInit
 
u16 vramLarge
 
u16 vramSmall
 

Detailed Description

Configuration for the dynamic sprite engine.

Pass this to oamDynamicInit instead of the 5 positional arguments of oamInitDynamicSprite. Equivalent at runtime; clearer at the call site and easier to evolve without breaking existing callers.

Member Data Documentation

◆ sizeMode

u8 OamDynamicConfig::sizeMode

OBJ_SIZE_* — defines the small/large pixel sizes

◆ slotLargeInit

u16 OamDynamicConfig::slotLargeInit

Initial OAM slot for large sprites (was oamsp0init)

◆ slotSmallInit

u16 OamDynamicConfig::slotSmallInit

Initial OAM slot for small sprites (was oamsp1init)

◆ vramLarge

u16 OamDynamicConfig::vramLarge

VRAM base for large-size tile pool (was gfxsp0adr)

◆ vramSmall

u16 OamDynamicConfig::vramSmall

VRAM base for small-size tile pool (was gfxsp1adr)


The documentation for this struct was generated from the following file: