#include <nitro/gx/gx.h>void GX_SetBGScrOffset(GXBGScrOffset offset);This function selects an offset to apply to the address where the Main 2D Engine BG screen data is stored. The sum of the BG screen base offset set with this function and the screen base block set for each BG is the base address in the BG-VRAM space.
GX_BGSCROFFSET_0x00000 |
Sets the 0x00000 address as the offset. |
GX_BGSCROFFSET_0x10000 |
Sets the 0x10000 address as the offset. |
GX_BGSCROFFSET_0x20000 |
Sets the 0x20000 address as the offset. |
GX_BGSCROFFSET_0x30000 |
Sets the 0x30000 address as the offset. |
GX_BGSCROFFSET_0x40000 |
Sets the 0x40000 address as the offset. |
GX_BGSCROFFSET_0x50000 |
Sets the 0x50000 address as the offset. |
GX_BGSCROFFSET_0x60000 |
Sets the 0x60000 address as the offset. |
GX_BGSCROFFSET_0x70000 |
Sets the 0x70000 address as the offset. |
The following indicates the type definition for GXBGScrOffset format.
typedef enum
{
GX_BGSCROFFSET_0x00000 = 0x00,
GX_BGSCROFFSET_0x10000 = 0x01,
GX_BGSCROFFSET_0x20000 = 0x02,
GX_BGSCROFFSET_0x30000 = 0x03,
GX_BGSCROFFSET_0x40000 = 0x04,
GX_BGSCROFFSET_0x50000 = 0x05,
GX_BGSCROFFSET_0x60000 = 0x06,
GX_BGSCROFFSET_0x70000 = 0x07
}
GXBGScrOffset;
offset |
BG screen data offset value |
None
G2_SetBG0Control,
G2_SetBG1Control,
G2_SetBG2ControlText,
G2_SetBG2ControlAffine,
G2_SetBG2Control256x16Pltt,
G2_SetBG2Control256Bmp,
G2_SetBG2ControlDCBmp,
G2_SetBG2ControlText,
G2_SetBG2ControlAffine,
G2_SetBG2Control256x16Pltt,
G2_SetBG2Control256Bmp,
G2_SetBG2ControlDCBmp
G2_SetBG3ControlText,
G2_SetBG3ControlAffine,
G2_SetBG3Control256x16Pltt,
G2_SetBG3Control256Bmp,
G2_SetBG3ControlDCBmp
02/09/2004 Revised See Also
01/19/2004 Initial Version