FabGL
ESP32 VGA Controller and Graphics Library

◆ refreshSprites()

void fabgl::VGAControllerClass::refreshSprites ( )

Force the sprites to be updated.

Screen is automatically updated whenever a primitive is painted (look at CanvasClass). When a sprite updates its image or its position (or any other property) it is required to force a refresh using this method. VGAControllerClass.refreshSprites() is required also using double buffered mode, to paint sprites.