Page 1 of 1

static u16 spriteNum;

Posted: Mon Mar 10, 2014 4:13 pm
by djcouchycouch
Hey Stef,

What are your thoughts on making spriteNum in vdp_spr.c non-static? It would be useful to be able to manipulate the vdpSpriteCache manually while still being able to call VDP_updateSprites() when we're done.

djcc

Posted: Mon Mar 10, 2014 5:36 pm
by Stef
Yeah of course, it would be handy :) To be honest i was thinking of deprecating the whole vdp_spr unit as it is not very convenient to work with but for that i need to provide lower access to the VDPSpriteCache structure in the sprite_eng.c file. A better solution would be to replace the vdpSpriteCache of vdp_spr by VDPSpriteCache of spr_eng but that would break many codes i guess so i have to think for a better solution.