#include <nitro/gx/gx_bgcnt.h>
void G2_SetBG2ControlDCBmp(
GXBGScrSizeDcBmp screenSize,
GXBGAreaOver areaOver,
GXBGBmpScrBase screenBase
);
screenSize | screen size |
areaOver | Option for out-of-area processing |
screenBase | Screen base block |
None.
This function sets BG2 (for direct color bitmap BG).
GX_BG_SCRSIZE_DCBMP_128x128 |
Sets screen size to 128x128 pixels (32 kilobytes). |
GX_BG_SCRSIZE_DCBMP_256x256 |
Sets screen size to 256x256 pixels (128 kilobytes). |
GX_BG_SCRSIZE_DCBMP_512x256 |
Sets screen size to 512x256 pixels (256 kilobytes). |
GX_BG_SCRSIZE_DCBMP_512x512 |
Sets screen size to 512 x 512 dots (512 kilobytes). |
GX_BG_AREAOVER_XLU |
Transparent display of the out-of-area region |
GX_BG_AREAOVER_REPEAT |
Wraparound display of the out-of-area region |
GX_BG_BMPSCRBASE_0xnnnnn |
Specifies BG2 screen base block. Refer to GX_SetBGScrOffset . |
The following describes the enumerated type definitions of the arguments.
typedef enum { GX_BG_SCRSIZE_DCBMP_128x128 = 0, GX_BG_SCRSIZE_DCBMP_256x256 = 1, GX_BG_SCRSIZE_DCBMP_512x256 = 2, GX_BG_SCRSIZE_DCBMP_512x512 = 3 } GXBGScrSizeDcBmp; typedef enum { GX_BG_AREAOVER_XLU = 0, GX_BG_AREAOVER_REPEAT = 1 } GXBGAreaOver; typedef enum { GX_BG_BMPSCRBASE_0x00000 = 0, GX_BG_BMPSCRBASE_0x04000 = 1, GX_BG_BMPSCRBASE_0x08000 = 2, GX_BG_BMPSCRBASE_0x0c000 = 3, GX_BG_BMPSCRBASE_0x10000 = 4, GX_BG_BMPSCRBASE_0x14000 = 5, GX_BG_BMPSCRBASE_0x18000 = 6, GX_BG_BMPSCRBASE_0x1c000 = 7, GX_BG_BMPSCRBASE_0x20000 = 8, GX_BG_BMPSCRBASE_0x24000 = 9, GX_BG_BMPSCRBASE_0x28000 = 10, GX_BG_BMPSCRBASE_0x2c000 = 11, GX_BG_BMPSCRBASE_0x30000 = 12, GX_BG_BMPSCRBASE_0x34000 = 13, GX_BG_BMPSCRBASE_0x38000 = 14, GX_BG_BMPSCRBASE_0x3c000 = 15, GX_BG_BMPSCRBASE_0x40000 = 16, GX_BG_BMPSCRBASE_0x44000 = 17, GX_BG_BMPSCRBASE_0x48000 = 18, GX_BG_BMPSCRBASE_0x4c000 = 19, GX_BG_BMPSCRBASE_0x50000 = 20, GX_BG_BMPSCRBASE_0x54000 = 21, GX_BG_BMPSCRBASE_0x58000 = 22, GX_BG_BMPSCRBASE_0x5c000 = 23, GX_BG_BMPSCRBASE_0x60000 = 24, GX_BG_BMPSCRBASE_0x64000 = 25, GX_BG_BMPSCRBASE_0x68000 = 26, GX_BG_BMPSCRBASE_0x6c000 = 27, GX_BG_BMPSCRBASE_0x70000 = 28, GX_BG_BMPSCRBASE_0x74000 = 29, GX_BG_BMPSCRBASE_0x78000 = 30, GX_BG_BMPSCRBASE_0x7c000 = 31 } GXBGBmpScrBase;
01/19/2004 Initial version