29 #ifndef _SPRITE_POOL_H_ 30 #define _SPRITE_POOL_H_ 48 #if defined(ESP32) || defined(ESP8266) 52 static const uint8_t MAX_SPRITES = 10;
90 void remove(
SPRITE &sprite );
114 virtual void drawBlock(uint8_t blockColumn, uint8_t blockRow);
119 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.
virtual void drawBlock(uint8_t blockColumn, uint8_t blockRow)
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.