Skip to content

PoseRows beta ​

Class of @v12-engine/client/lite-views

ts
export declare class PoseRows

The 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 ​

ts
constructor(renderer: Renderer, 
    joints?: number, 
    rows?: number);

Constructs a new instance of the PoseRows class

across ​

ts
readonly across: number;

Texels a row: a pose now and the pose of the frame before

add ​

ts
add(): number;

A row for a unit: its handle, or -1 where every row is taken

beforeOf ​

ts
beforeOf(handle: number): number;

Where a handle's pose of the frame before starts in data

data ​

ts
readonly data: Float32Array;

The rows on the CPU, as the skeletons are posed into them: across texels a row, four floats a texel

dispose ​

ts
dispose(): void;

Takes away its texture and those of the wider rows

flush ​

ts
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 ​

ts
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 ​

ts
readonly joints: number;

The most joints a row holds

offsetOf ​

ts
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 ​

ts
readonly ready: Promise<DataTexture>;

The texture on the card, once made

remove ​

ts
remove(handle: number): void;

A row let go of: the last row in use takes its place

rowOf ​

ts
rowOf(handle: number): number;

The row a handle holds now

rows ​

ts
readonly rows: number;

How many rows: units with a skeleton at once

sizes ​

ts
get sizes(): PoseRows[];

Every size of rows made so far: these, then the wider (for)

slots ​

ts
readonly slots: Slots;

The units' handles of their rows: those in use the first count

version ​

ts
version: number;

Goes up whenever a row moved into another's place

width ​

ts
readonly width: number;

Texels a pose: four a joint

writes ​

ts
writes: number;

How many times the rows were sent to the card

wrote ​

ts
wrote(handle: number): void;

A handle's row was written