

#include <nitro/gx/gx_vramcnt.h>void GX_SetBankForSubBG(GXVRamSubBG bg);bg |
Specifies a VRAM bank to allocate to the sub 2D Engine's BG |
None.
This function allocates the specified VRAM bank to the sub 2D Engine's BG. If the specified VRAM bank is either disabled or allocated to LCDC, that VRAM bank is allocated to the sub 2D Engine BG.
GX_VRAM_SUB_BG_NONE |
VRAM bank is not allocated to BG. |
GX_VRAM_SUB_BG_128_C |
128 KB are reserved in BG. VRAM-C is allocated. |
GX_VRAM_SUB_BG_32_H |
32 KB are reserved in BG. VRAM-H is allocated. |
GX_VRAM_SUB_BG_48_HI |
48 KB are reserved in BG. VRAM-H and -I are allocated. |
The following is the type definition for GXVRamSubBG types.
typedef enum
{
GX_VRAM_SUB_BG_NONE = 0x0000,
GX_VRAM_SUB_BG_128_C = GX_VRAM_C,
GX_VRAM_SUB_BG_32_H = GX_VRAM_H,
GX_VRAM_SUB_BG_48_HI = GX_VRAM_H | GX_VRAM_I
}
GXVRamSubBG;
GX_GetBankForSubBG, GX_ResetBankForSubBG, GX_DisableBankForSubBG, GX_GetSizeOfSubBG
2004/02/09 Initial version.
CONFIDENTIAL