FabGL
ESP32 VGA Controller and Graphics Library

◆ addSprite()

void fabgl::Scene::addSprite ( Sprite sprite)
inline

Add the specified sprite to collision detector.

The collision detector is updated calling Scene.updateSprite() or updateSpriteAndDetectCollisions(). The number of sprites cannot exceed the value specified in Scene constructor.

Parameters
spriteThe sprite to add.