24 #ifndef _SPRITE_POOL_H_ 25 #define _SPRITE_POOL_H_ 77 void remove(
SPRITE &sprite );
101 virtual void drawBlock(uint8_t blockColumn, uint8_t blockRow);
106 uint8_t m_canvasBuf[8*8/8];
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.
static const uint8_t MAX_SPRITES
Defines max sprites number supported by SpritePool.
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)