

#include <nitro/gx/gx_bgcnt.h>static inline GXBg23ControlAffine G2_GetBG2ControlAffine( void );static inline GXBg23ControlAffine G2S_GetBG2ControlAffine( void );
なし。
BG2の設定。
アフィンBGの場合のBG2の設定をGXBg23ControlAffine構造体として取得します。
各メンバについてはG2_SetBG2ControlAffine() を参照してください。
この関数はBG2がアフィンBGに設定されている状態で使用する必要があります。
G2_GetBG2ControlAffine() ではメイン2Dエンジン、G2S_GetBG2ControlAffine() ではサブ2Dエンジンの設定を取得できます。
GXBg23ControlAffineの定義は以下のようになっております。
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;
};
}
GXBg23ControlAffine;
G2_SetBG2ControlAffine, G2S_SetBG2ControlAffine
Ver. 2004/12/24