SpriteBatchRenderer class abstract interface

Abstract contract for a sprite-batch renderer.

Implementations collect per-sprite data via add and issue a single GPU draw call in flush.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add({required Rect sourceRect, required Offset position, double rotation = 0.0, double scale = 1.0, double? anchorX, double? anchorY, Color color = const Color(0xFFFFFFFF)}) → void
Queue a single sprite for batched rendering.
flush(Canvas canvas) → void
Render all queued sprites and clear the batch.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited