FabGL
ESP32 Display Controller and Graphics Library
|
|
inlineinherited |
Sets the list of active sprites.
A sprite is an image that keeps background unchanged.
There is no limit to the number of active sprites, but flickering and slow refresh happens when a lot of sprites (or large sprites) are visible.
To empty the list of active sprites call BitmappedDisplayController.removeSprites().
sprites | The list of sprites to make currently active. |
count | Number of sprites in the list. |
Example:
// define a sprite with user data (velX and velY) struct MySprite : Sprite { int velX; int velY; }; static MySprite sprites[10]; VGAController.setSprites(sprites, 10);
Definition at line 846 of file displaycontroller.h.