G2*_GetBG0Control

構文

#include <nitro/gx/gx_bgcnt.h>
static inline GXBg01Control G2_GetBG0Control( void );
static inline GXBg01Control G2S_GetBG0Control( void );

  

引数

なし。

返り値

BG0(2Dの場合)の設定を取得します。

説明

BG0(2Dの場合)の設定をGXBg01Control構造体として取得します。
各メンバについてはG2_SetBG0Control() を参照してください。

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

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

typedef union
{
    u16 raw;
    struct
    {
        u16 priority:2;
        u16 charBase:4;
        u16 mosaic:1;
        u16 colorMode:1;
        u16 screenBase:5;
        u16 bgExtPltt:1;
        u16 screenSize:2;
    };
}
GXBg01Control;

参照

G2_SetBG0Control, G2S_SetBG0Control

履歴

Ver. 2004/12/24