Keep track of allocated sprite count

This commit is contained in:
Pk11
2021-01-14 09:19:08 -06:00
parent 1ff3ba6534
commit c428fa704b
2 changed files with 16 additions and 5 deletions
+3 -1
View File
@@ -16,7 +16,7 @@ private:
bool _visibility;
u16 *_gfx;
static bool _assigned[2][128];
static u8 _assigned[2][128];
public:
/**
@@ -43,6 +43,8 @@ public:
*/
Sprite(bool top, SpriteSize size, SpriteColorFormat format, int x = 0, int y = 0, int priority = 0, int id = -1, int paletteAlpha = 15, int rotationIndex = -1, bool doubleSize = false, bool visible = true, bool vFlip = false, bool hFlip = false, bool mosaic = false);
Sprite(const Sprite &sprite);
~Sprite(void);
u16* gfx(void) const { return _gfx; }