FabGL
ESP32 Display Controller and Graphics Library

◆ addSprite()

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

Definition at line 134 of file scene.h.