English
Interface: MaskTreeVisitor<T>
Defined in: src/MaskTree.ts:16
Receives the writers MaskTreePlanner.plan finds, while the frame of the context that owns them is still current. The renderer rasterises them here (or copies out what it needs to later); the planner only decides which writers there are and where each one holds.
Type Parameters
T
T
Methods
beginContext()
beginContext(
player,frameData,matrix):void
Defined in: src/MaskTree.ts:22
A context with at least one writer is about to report them. matrix places it (the root's own at the root, the composed instance matrix below), exactly as the renderer places that context when drawing it.
Parameters
player
T
frameData
matrix
Float32Array<ArrayBufferLike> | null
Returns
void
writer()
writer(
player,frameData,planner,w,index):void
Defined in: src/MaskTree.ts:27
One writer: planner's writer w, valid for this call only. index is its tree-wide index, which is also its coverage bit.
Parameters
player
T
frameData
planner
w
number
index
number
Returns
void