GX_SetBGCharOffset

C Specification

#include <nitro/gx/gx.h>

void GX_SetBGCharOffset(GXBGCharOffset offset);

Arguments

offset BG character data offset value

Return Values

None.

Description

This function selects an offset to apply to the address where the Main 2D Engine BG character data is stored. The sum of the BG character base offset set by this function and the character base block for each BG is the base address for the character data in BG-VRAM space.

GX_BGCHAROFFSET_0x00000 Sets 0x00000 as the offset.
GX_BGCHAROFFSET_0x10000 Sets 0x10000 as the offset.
GX_BGCHAROFFSET_0x20000 Sets 0x20000 as the offset.
GX_BGCHAROFFSET_0x30000 Sets 0x30000 as the offset.
GX_BGCHAROFFSET_0x40000 Sets 0x40000 as the offset.
GX_BGCHAROFFSET_0x50000 Sets 0x50000 as the offset.
GX_BGCHAROFFSET_0x60000 Sets 0x60000 as the offset.
GX_BGCHAROFFSET_0x70000 Sets 0x70000 as the offset.

The following is the type definition for GXBGCharOffset types.

typedef enum
{
GX_BGCHAROFFSET_0x00000 = 0x00,
GX_BGCHAROFFSET_0x10000 = 0x01,
GX_BGCHAROFFSET_0x20000 = 0x02,
GX_BGCHAROFFSET_0x30000 = 0x03,
GX_BGCHAROFFSET_0x40000 = 0x04,
GX_BGCHAROFFSET_0x50000 = 0x05,
GX_BGCHAROFFSET_0x60000 = 0x06,
GX_BGCHAROFFSET_0x70000 = 0x07
}
GXBGCharOffset;

See Also

G2_SetBG0Control, G2_SetBG1Control, G2_SetBG2ControlText, G2_SetBG2ControlAffine, G2_SetBG2Control256x16Pltt, G2_SetBG2Control256Bmp, G2_SetBG2ControlDCBmp, G2_SetBG2ControlText, G2_SetBG2ControlAffine, G2_SetBG2Control256x16Pltt, G2_SetBG2Control256Bmp, G2_SetBG2ControlDCBmp

Revision History

01/19/2004 Initial version