#include <iris/gx/gx_bgcnt.h>void G2_SetBG3Control256x16Pltt(
GXBGScrSize256x16Pltt screenSize,
GXBGAreaOver areaOver,
GXBGScrBase screenBase
);
| screenSize | スクリーンサイズ |
| areaOver | エリアオーバー処理オプション |
| screenBase | スクリーンベースブロック |
なし。
BG3(256色x16パレットキャラクタBGの場合)を設定します。
GX_BG_SCRSIZE_256x16PLTT_128x128 |
画面サイズを128x128ドット(512バイト)にします。 |
GX_BG_SCRSIZE_256x16PLTT_256x256 |
画面サイズを256x256ドット(2Kバイト)にします。 |
GX_BG_SCRSIZE_256x16PLTT_512x512 |
画面サイズを512x512ドット(8Kバイト)にします。 |
GX_BG_SCRSIZE_256x16PLTT_1024x1024 |
画面サイズを1024x1024ドット(32Kバイト)にします。 |
GX_BG_AREAOVER_XLU |
エリアオーバー部分の透明表示 |
GX_BG_AREAOVER_REPEAT |
エリアオーバー部分の回りこみ表示 |
GX_BG_SCRBASE_0xnnnn |
BG3のスクリーンベースブロックを指定します。GX_SetBGScrOffsetも参照のこと。 |
以下に引数の列挙型の型定義を記しておきます。
typedef enum
{
GX_BG_SCRSIZE_256x16PLTT_128x128 = 0,
GX_BG_SCRSIZE_256x16PLTT_256x256 = 1,
GX_BG_SCRSIZE_256x16PLTT_512x512 = 2,
GX_BG_SCRSIZE_256x16PLTT_1024x1024 = 3
}
GXBGScrSize256x16Pltt;
typedef enum
{
GX_BG_AREAOVER_XLU = 0,
GX_BG_AREAOVER_REPEAT = 1
}
GXBGAreaOver;
typedef enum
{
GX_BG_SCRBASE_0x0000 = 0,
GX_BG_SCRBASE_0x0800 = 1,
GX_BG_SCRBASE_0x1000 = 2,
GX_BG_SCRBASE_0x1800 = 3,
GX_BG_SCRBASE_0x2000 = 4,
GX_BG_SCRBASE_0x2800 = 5,
GX_BG_SCRBASE_0x3000 = 6,
GX_BG_SCRBASE_0x3800 = 7,
GX_BG_SCRBASE_0x4000 = 8,
GX_BG_SCRBASE_0x4800 = 9,
GX_BG_SCRBASE_0x5000 = 10,
GX_BG_SCRBASE_0x5800 = 11,
GX_BG_SCRBASE_0x6000 = 12,
GX_BG_SCRBASE_0x6800 = 13,
GX_BG_SCRBASE_0x7000 = 14,
GX_BG_SCRBASE_0x7800 = 15,
GX_BG_SCRBASE_0x8000 = 16,
GX_BG_SCRBASE_0x8800 = 17,
GX_BG_SCRBASE_0x9000 = 18,
GX_BG_SCRBASE_0x9800 = 19,
GX_BG_SCRBASE_0xa000 = 20,
GX_BG_SCRBASE_0xa800 = 21,
GX_BG_SCRBASE_0xb000 = 22,
GX_BG_SCRBASE_0xb800 = 23,
GX_BG_SCRBASE_0xc000 = 24,
GX_BG_SCRBASE_0xc800 = 25,
GX_BG_SCRBASE_0xd000 = 26,
GX_BG_SCRBASE_0xd800 = 27,
GX_BG_SCRBASE_0xe000 = 28,
GX_BG_SCRBASE_0xe800 = 29,
GX_BG_SCRBASE_0xf000 = 30,
GX_BG_SCRBASE_0xf800 = 31
}
GXBGScrBase;
Ver. 2004/01/19