Hello again,
Is there any "window plan" sample with sgdk somewhere ?
Is it dedicated to UI display ?
window plan sample
Moderator: Stef
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
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.
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.