static u16 spriteNum;

SGDK only sub forum

Moderator: Stef

Post Reply
djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

static u16 spriteNum;

Post 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
Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post 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.
Post Reply