StripBatch class
A flush batch: everything needed to draw its strips with one shader paint - chunks drawVertices calls sharing one atlas.
Constructors
- StripBatch.fromData(StripBatchData data)
-
Wraps portable batch
datain engine vertex objects. The atlas image is decoded separately (decodeAtlas) becausedecodeImageFromPixelsis asynchronous.
Properties
- atlas ↔ Image?
-
Decoded alpha atlas; set by decodeAtlas, disposed by dispose.
getter/setter pair
- atlasHeight → int
-
final
- atlasPixels → Uint8List
-
final
- atlasWidth → int
-
final
-
chunkAlphaBases
→ List<
int> -
Per-chunk texcoord origin (global alpha-texel index), fed to the
shader's uBase - see StripChunkData.alphaBase.
final
-
chunks
→ List<
Vertices> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stripCount → int
-
final
Methods
-
decodeAtlas(
) → Future< void> - Decodes atlasPixels into the GPU-sampled atlas image. rgba8888 via decodeImageFromPixels is byte-exact (M0-verified); asynchronous, so the strip device defers all drawing to its finish() replay.
-
dispose(
) → void -
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
Static Methods
-
of(
StripBuffer strips) → StripBatch? -
Snapshots
strips(the generator reuses its buffers, so all data is copied) into draw-ready form, or null when the buffer is empty.