rfw2d
    Preparing search index...

    Class TextBatcher

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    batches: TextBatch[] = []

    Batches. All batches in this collection are at least partially occupied.

    batchPool: Pool<TextBatch> = ...
    changeTracker: ChangeTracker

    Changes to objects will be propagated to the change tracker

    entryPool: Pool<TextBatchEntry> = ...
    maximums?: { maxGlyphCount: number; maxTextureCount: number }
    queuedEntries: TextBatchEntry[] = []

    New entries are queued until all changes are applied to a batch.

    Accessors

    • get size(): number

      Entries across all batches. Does not respect queued adds/deletes.

      Returns number

    Methods

    • Move data within a batch. Used if e.g. entries change size and multiple entries must be moved to fill gaps or crate space.

      Parameters

      • batch: TextBatch

        Affected batch

      • target: number

        Target element offset

      • start: number

        Start element offset

      • end: number

        End element offset

      Returns void

      Generally should call copyWithin on batch storage or its buffer.

    • Parameters

      • maxTextureCount: number
      • OptionalmaxGlyphCount: number

      Returns void