|
From: <je...@al...> - 2005-09-15 21:02:49
|
Hello,
i am looking to use libparallax to draw sprites. I try to avoid
as uch as possible direct pvr calls, since i want to do main
development with kosx (i don't have any serial cable and
can only burn cd roms). I have made a simple program
displaying a background and a logo in front, moving
with the maple controler. It works well under macos x
but... of course not on the dreamcast and i really wonder
why.
I create my texture with :
texture = plx_txr_load(path, has_alpha, 0);
where path is a correct romdisk path (/rd/logo.png).
The texture loads correctly on the dreamcast (checked
by changing background color after that).
Then I try to draw a background image :
while (1)
{
plx_scene_begin();
plx_list_begin(PVR_LIST_OP_POLY);
plx_txr_send_hdr(texture, PVR_LIST_OP_POLY, 0);
plx_spr_fnp(640, 480, 640/2, 480/2, 0, 255, 255, 255, 255);
pvr_list_finish(PVR_LIST_OP_POLY); // unfortunatly unavailable under
kosx...
plx_scene_end();
}
and that only displays the background color (without any image).
Does anyone have an idea on how to use libparallax to draw very simple
sprites?
(in that case the sprite is 640x480).
I have correctly initialized kos:
extern uint8 romdisk[];
KOS_INIT_FLAGS(INIT_DEFAULT | INIT_MALLOCSTATS);
KOS_INIT_ROMDISK(romdisk);
Thanks for help...
Jerome Cornet
|