window plan sample

SGDK only sub forum

Moderator: Stef

Post Reply
bioloid
Very interested
Posts: 176
Joined: Fri May 18, 2012 8:22 pm

window plan sample

Post by bioloid » Sun Feb 15, 2015 6:35 pm

Hello again,

Is there any "window plan" sample with sgdk somewhere ?

Is it dedicated to UI display ?

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

Post by Stef » Mon Feb 16, 2015 10:15 am

You can use it for whatever you want but yeah generally it's used for UI.
You have to think it just a "fixed part" of plan A so you can't have plan A displayed where window is.. there is no window example in SGDK unfortunately but it is quite simple to use it.
You can have a look just on the VDP_init() in vdp.c SGDK file :

https://code.google.com/p/sgdk/source/b ... /src/vdp.c

So you can see the 2 last VDP registers are used to set H/V position of the window.

bioloid
Very interested
Posts: 176
Joined: Fri May 18, 2012 8:22 pm

Post by bioloid » Mon Feb 16, 2015 6:22 pm

Ok Steph, thanks :)

Post Reply