#86727 - LiraNuna - Thu Jun 08, 2006 8:21 pm
I know how windows are working, and even used them on the GBA back then.
But is it me, or they are wierd on the DS?
I follow only GBAtek for my gfx needs, and I assume it's the same on the DS (it even crosspand the defines in libnds' video.h...).
I am using window 1 (yes, it's enabled on 0x4000000, and Window X0, X1, Y0 and Y1 are already inited) and I want my display as follows:
BG0, BG1, BG3 and Sprites are on:
So I follow my needs, and sets up my code with info from GBAtek:
Result:
Thanks for your help.
But is it me, or they are wierd on the DS?
I follow only GBAtek for my gfx needs, and I assume it's the same on the DS (it even crosspand the defines in libnds' video.h...).
I am using window 1 (yes, it's enabled on 0x4000000, and Window X0, X1, Y0 and Y1 are already inited) and I want my display as follows:
BG0, BG1, BG3 and Sprites are on:
- BG0 is displayed inside and outside of window1
BG1 is shown only inside window 1
BG3 is allways displayed on top on both BGs
HW Effect is applied on BG3
Sprites anywhere on the screen
Priority: BG3 > BG1 > Sprites > BG0
So I follow my needs, and sets up my code with info from GBAtek:
Code: |
WIN_IN = BIT(8) | BIT(9) | BIT(11) | BIT(12) | BIT(13);
WIN_OUT = BIT(0) | BIT(3) | BIT(4) | BIT(5); |
Result:
- BG0 is showing inside and outside window 1.
BG1 isn't showing at all.
BG3 is showing inside and outside window 1.
Sprites are showing inside and outside window 1.
HW effects are applied.
Thanks for your help.