G2*_GetBG1Control

構文

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

  

引数

なし。

返り値

BG1の表示設定を取得します。

説明

BG1の表示設定をGXBg01Control構造体として取得します。
各メンバについてはG2_SetBG1Control() を参照してください。

G2_GetBG1Control() ではメイン2Dエンジン、G2S_GetBG1Control() ではサブ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_SetBG1Control, G2S_SetBG1Control

履歴

Ver. 2004/12/24