#include <nitro/gx/gx_vramcnt.h>
BOOL GX_TrySetBankForSubBGExtPltt(GXVRamSubBGExtPltt bgExtPltt);
bgExtPltt | Specifies a VRAM bank to allocate to the sub 2D Engine's BG Extended palette |
Returns TRUE if the VRAM bank is allocated as normal. Returns FALSE if the VRAM bank to be allocated is locked by another library.
Attempts to allocate a VRAM bank to the sub 2D engine BG extended palette. If the specified VRAM bank is either disabled or allocated to LCDC, that VRAM bank is allocated to the sub 2D Engine BG Extended palette. The allocation will fail if the designated VRAM bank is exclusion-locked by another library.
Note: When the VRAM bank is allocated to the BG Extended palette, the palette information of the BG Extended palette is referenced when 256 colors are specified as the color mode for text BG or 256x16 palette BG is selected. At all other times, the standard palette is referenced.
GX_VRAM_SUB_BGEXTPLTT_NONE |
The VRAM bank is not allocated to the BG Extended palette. |
GX_VRAM_SUB_BGEXTPLTT_0123_H |
Slots 0 to 3 of the BG Extended palette are reserved. VRAM-H is allocated. |
The following is the type definition for GXVRamSubBGExtPltt
types.
typedef enum
{
GX_VRAM_SUB_BGEXTPLTT_NONE = 0x0000,
GX_VRAM_SUB_BGEXTPLTT_0123_H = GX_VRAM_H
}
GXVRamSubBGExtPltt;
GX_SetBankForSubBGExtPltt, GX_GetBankForSubBGExtPltt, GX_ResetBankForSubBGExtPltt, GX_DisableBankForSubBGExtPltt, GX_GetSizeOfSubBGExtPltt
02/15/2005 Initial version.