I making a little 2d engine and I use the KOS PVR lib to blit on screen.
All my gfx are TR_POLY, 2D textured with png files and I draw on screen with a classic PVR_LIST :
Code: Select all
pvr_wait_ready();
pvr_scene_begin();
pvr_list_begin(PVR_LIST_TR_POLY);
?
pvr_list_finish();
pvr_scene_finish();
My pbm is that with some sprites, the PVR change the order of the poly and last pushed isn?t in the front of my screen some sprites are draw behind the tiles (and are invisible).
I think the pbm is here because when I remove the tile layer drawing, I can see the sprites.
Does someone know why PVR do this (though it used z plane to change orders) and how I can force ?last pushed always in front? without use a z plane ?
Thanks
JMD