24 #ifndef _SPRITE_POOL_H_ 25 #define _SPRITE_POOL_H_ 74 void remove(
SPRITE &sprite );
98 virtual void drawBlock(uint8_t blockColumn, uint8_t blockRow);
102 static const uint8_t MAX_SPRITES = 8;
105 uint8_t m_canvasBuf[8*8/8];
108 SPRITE *m_sprites[MAX_SPRITES];
static const uint8_t SP_ERR_NO_SPACE
No free space for new sprite error.
NanoCanvas m_canvas
Canvas used to draw sprites to avoid flickering.
uint8_t add(SPRITE &sprite)
void setRect(SSD1306_RECT rect)
SSD1306_RECT m_rect
Rectangle, which specifies part of the display, used by the sprites.
virtual void drawBlock(uint8_t blockColumn, uint8_t blockRow)