FabGL
ESP32 VGA Controller and Graphics Library

◆ Scene()

fabgl::Scene::Scene ( int  maxSpritesCount,
int  updateTimeMS = 20,
int  width = Canvas.getWidth(),
int  height = Canvas.getHeight() 
)

The Scene constructor.

Parameters
maxSpritesCountSpecifies maximum number of sprites. This is required to size the collision detector object.
updateTimeMSNumber of milliseconds between updates. Scene.update() is called whenever an update occurs.
widthThe scene width in pixels.
heightThe scene height in pixels.