Why no VDP_PLAN_WINDOW?

SGDK only sub forum

Moderator: Stef

Post Reply
cero
Very interested
Posts: 339
Joined: Mon Nov 30, 2015 1:55 pm

Why no VDP_PLAN_WINDOW?

Post by cero » Thu Dec 17, 2015 9:58 am

I wonder why all the tile functions only take plane A and B - how should we use the window plane?

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Why no VDP_PLAN_WINDOW?

Post by Stef » Thu Dec 17, 2015 3:47 pm

Haha, well i guess i forgot this one :D
Not the first time someone is wondering about that, you can still set the tilemap data from window plan by directly using the internal VRAM address but i will add the VDP_PLAN_WINDOW in the next version (see this issue)

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Re: Why no VDP_PLAN_WINDOW?

Post by KanedaFr » Wed Dec 23, 2015 10:37 am

it's funny because it seems people just forgot to read vdp.h...

You're not the first one to look for VDP_PLAN_WINDOW

but in fact, it exists...
https://github.com/Stephane-D/SGDK/blob ... /vdp.h#L89
https://github.com/Stephane-D/SGDK/blob ... vdp.h#L128

it's not a "real" plan since it use PLAN_A
so VDP_WINDOW is the correct name for my point of view

I use it without problem...

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Why no VDP_PLAN_WINDOW?

Post by Stef » Thu Dec 24, 2015 12:19 pm

Haha indeed, i though i still had some methods using the old enum which made the VDP_WINDOW parameter impossible but afaik that is not the case so we could use it in place of VDP_PLAN_A or VDP_PLAN_B.
I just need to update documentation ;)

cero
Very interested
Posts: 339
Joined: Mon Nov 30, 2015 1:55 pm

Re: Why no VDP_PLAN_WINDOW?

Post by cero » Sat Dec 26, 2015 4:40 pm

Since all docs say "this function only takes PLAN_A and PLAN_B", it's quite reasonable to assume the define is just preliminary/not fully implemented.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Why no VDP_PLAN_WINDOW?

Post by Stef » Sun Dec 27, 2015 10:26 pm

Yep, it's why documentation will be updated to fix that :)

Post Reply