mirror of https://github.com/mgba-emu/mgba.git
Move BLDCNT definition from video-softare to gba-video
This commit is contained in:
parent
abccc2d804
commit
7d12de0cb9
|
@ -129,6 +129,21 @@ DECL_BITS(GBARegisterBGCNT, ScreenBase, 8, 5);
|
||||||
DECL_BIT(GBARegisterBGCNT, Overflow, 13);
|
DECL_BIT(GBARegisterBGCNT, Overflow, 13);
|
||||||
DECL_BITS(GBARegisterBGCNT, Size, 14, 2);
|
DECL_BITS(GBARegisterBGCNT, Size, 14, 2);
|
||||||
|
|
||||||
|
DECL_BITFIELD(GBARegisterBLDCNT, uint16_t);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target1Bg0, 0);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target1Bg1, 1);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target1Bg2, 2);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target1Bg3, 3);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target1Obj, 4);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target1Bd, 5);
|
||||||
|
DECL_BITS(GBARegisterBLDCNT, Effect, 6, 2);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target2Bg0, 8);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target2Bg1, 9);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target2Bg2, 10);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target2Bg3, 11);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target2Obj, 12);
|
||||||
|
DECL_BIT(GBARegisterBLDCNT, Target2Bd, 13);
|
||||||
|
|
||||||
struct GBAVideoRenderer {
|
struct GBAVideoRenderer {
|
||||||
void (*init)(struct GBAVideoRenderer* renderer);
|
void (*init)(struct GBAVideoRenderer* renderer);
|
||||||
void (*reset)(struct GBAVideoRenderer* renderer);
|
void (*reset)(struct GBAVideoRenderer* renderer);
|
||||||
|
|
|
@ -22,21 +22,6 @@ static const int _objSizes[32] = {
|
||||||
0, 0
|
0, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
DECL_BITFIELD(GBARegisterBLDCNT, uint16_t);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target1Bg0, 0);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target1Bg1, 1);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target1Bg2, 2);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target1Bg3, 3);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target1Obj, 4);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target1Bd, 5);
|
|
||||||
DECL_BITS(GBARegisterBLDCNT, Effect, 6, 2);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target2Bg0, 8);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target2Bg1, 9);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target2Bg2, 10);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target2Bg3, 11);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target2Obj, 12);
|
|
||||||
DECL_BIT(GBARegisterBLDCNT, Target2Bd, 13);
|
|
||||||
|
|
||||||
static void GBAVideoSoftwareRendererInit(struct GBAVideoRenderer* renderer);
|
static void GBAVideoSoftwareRendererInit(struct GBAVideoRenderer* renderer);
|
||||||
static void GBAVideoSoftwareRendererDeinit(struct GBAVideoRenderer* renderer);
|
static void GBAVideoSoftwareRendererDeinit(struct GBAVideoRenderer* renderer);
|
||||||
static void GBAVideoSoftwareRendererWriteOAM(struct GBAVideoRenderer* renderer, uint32_t oam);
|
static void GBAVideoSoftwareRendererWriteOAM(struct GBAVideoRenderer* renderer, uint32_t oam);
|
||||||
|
|
Loading…
Reference in New Issue