FabGL
ESP32 Display Controller and Graphics Library

◆ addSprite()

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

Adds 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.