PoseRows beta
Class of @v12-engine/client/lite-views
export declare class PoseRowsThe poses of the units drawn with a skeleton of their own: a row a unit of a texture of floats, sent once a frame
Members
constructor
constructor(renderer: Renderer,
joints?: number,
rows?: number);Constructs a new instance of the PoseRows class
across
readonly across: number;Texels a row: a pose now and the pose of the frame before
add
add(): number;A row for a unit: its handle, or -1 where every row is taken
beforeOf
beforeOf(handle: number): number;Where a handle's pose of the frame before starts in data
data
readonly data: Float32Array;The rows on the CPU, as the skeletons are posed into them: across texels a row, four floats a texel
dispose
dispose(): void;Takes away its texture and those of the wider rows
flush
flush(): void;Once a frame: the rows in use sent to the card, where any was written (each size's texture once); then this frame's poses kept as the next one's past
for
for(joints: number): PoseRows;The rows a rig of so many joints is posed in: these where they hold it, else those of the first size twice and twice again as wide that does (made the first time, as many rows as hold these rows' floats, 16 at least)
joints
readonly joints: number;The most joints a row holds
offsetOf
offsetOf(handle: number): number;Where a handle's row starts in data: a pose's matrices are written from there, sixteen floats a joint
ready
readonly ready: Promise<DataTexture>;The texture on the card, once made
remove
remove(handle: number): void;A row let go of: the last row in use takes its place
rowOf
rowOf(handle: number): number;The row a handle holds now
rows
readonly rows: number;How many rows: units with a skeleton at once
sizes
get sizes(): PoseRows[];Every size of rows made so far: these, then the wider (for)
slots
readonly slots: Slots;The units' handles of their rows: those in use the first count
version
version: number;Goes up whenever a row moved into another's place
width
readonly width: number;Texels a pose: four a joint
writes
writes: number;How many times the rows were sent to the card
wrote
wrote(handle: number): void;A handle's row was written