Skip to content

TestBatch beta ​

Interface of @v12-engine/render/testing

ts
export interface TestBatch extends Batch

A batch as the renderer keeps it, and what the last frame's view kept of it

Members ​

animations ​

ts
animations: number;

Calls of animated, since it was made

cascades ​

ts
readonly cascades: number;

How many cascades of the sun's shadows it is cast into (none: casts nothing)

cast ​

ts
readonly cast: TestCast[];

What each cascade of the main view's kept of it in the last frame, by cascade (as many as it may be cast into): the copies by their place (count of them), a batch in parts its runs, the triangles drawn into it. A cascade not drawn (the quality's fewer, the sun's shadows off) keeps nothing

disposed ​

ts
disposed: boolean;

Whether it was let go of

extra ​

ts
readonly extra: Float32Array | undefined;

The floats its copies carry besides their matrices, where its kind reads any

extraTouched ​

ts
extraTouched: number;

Calls of touchExtra, since it was made

glowColour ​

ts
glowColour: readonly number[] | undefined;

The colour glow last said, none where it said none or black

made ​

ts
readonly made: number;

Its place among every batch made: the order the view's pass draws them in, within their task

materials ​

ts
readonly materials: Material[];

The materials it was drawn with, the first first (use)

most ​

ts
most: number;

What limit, range and glow last said

options ​

ts
readonly options: BatchOptions;

The options it was made with

outlined ​

ts
readonly outlined: Map<number, {
        style: Outline;
        thing: number;
    }>;

The copies outlined, by their place: in what style, as part of which thing

rangeCount ​

ts
rangeCount: number;

How many indices range last said

rangeFirst ​

ts
rangeFirst: number;

The first index range last said

runCount ​

ts
runCount: number;

How many runs the view's pass draws

runs ​

ts
readonly runs?: Uint32Array;

Of a batch in parts: the runs the view's pass draws, pairs of the first index and how many (runCount of them)

seen ​

ts
readonly seen: Uint32Array;

The copies the view's pass keeps, by their place in the batch (seenCount of them)

seenCount ​

ts
seenCount: number;

How many copies the view's pass keeps

spheres ​

ts
readonly spheres: Float32Array;

Each copy's sphere, as touch last worked them out (four floats: x, y, z, r)

touched ​

ts
touched: number;

Calls of each, since it was made

triangles ​

ts
triangles: number;

Triangles the view's pass draws of it

view ​

ts
readonly view: SideView | undefined;

The side view it is drawn in (BatchOptions.view), none for the main view's