Skip to content

SkeletalPreview

Defined in: render/skeletalPreview.ts:57

An offscreen preview of one posed skeleton.

Its lifetime is the caller’s: whoever needs the preview to be alive holds this, and dispose ends it. A disposed handle answers nothing rather than quietly addressing whatever was made next.

readonly height: number

Defined in: render/skeletalPreview.ts:61


readonly width: number

Defined in: render/skeletalPreview.ts:61

get live(): boolean

Defined in: render/skeletalPreview.ts:73

boolean

dispose(): void

Defined in: render/skeletalPreview.ts:131

End it. Idempotent, and the id stops answering rather than addressing whatever is made next.

void


render(viewProjection): Promise<ImageData | null>

Defined in: render/skeletalPreview.ts:103

Draw what has been handed over and resolve with the pixels, upright.

Null when this preview already has a readback in flight — one at a time, which is what keeps a landed image and the camera it was drawn with from drifting apart. The caller re-renders when the pending one lands.

Float32Array

Promise<ImageData | null>


submit(batch): boolean

Defined in: render/skeletalPreview.ts:79

Hand over one batch. The engine copies it, so these buffers are the caller’s again the moment this returns.

SkeletalPreviewBatch

boolean


static create(module, w, h): SkeletalPreview | null

Defined in: render/skeletalPreview.ts:66

A preview of w×h, or null where this core has no such surface.

unknown

number

number

SkeletalPreview | null