G2*_GetBG2Control256x16Affine

構文

#include <nitro/gx/gx_bgcnt.h>
static inline GXBg23Control256x16Affine G2_GetBG2Control256x16Affine( void );
static inline GXBg23Control256x16Affine G2S_GetBG2Control256x16Affine( void );

引数

なし。

返り値

BG2の設定。

説明

アフィン拡張BGで256色×16パレットキャラクタBGの場合のBG2の設定をGXBg23Control256x16Affine構造体として取得します。
各メンバについてはG2_SetBG2Control256x16Affine() を参照してください。

この関数はBG2が256色×16パレットキャラクタBGに設定されている状態で使用する必要があります。

G2_GetBG2Control256x16Affine() ではメイン2Dエンジン、G2S_GetBG2Control256x16Affine() ではサブ2Dエンジンの設定を取得できます。

GXBg23Control256x16Affineの定義は以下のようになっております。

typedef union
{
    u16 raw;
    struct
    {
        u16 priority    :2;
        u16 charBase    :4;
        u16 mosaic      :1;
        u16 _reserve    :1;
        u16 screenBase  :5;
        u16 areaOver    :1;
        u16 screenSize  :2;
    };
}
GXBg23Control256x16Affine;

参照

G2_SetBG2Control256x16Affine, G2S_SetBG2Control256x16Affine

履歴

2007/01/18 初版