Skip to content

KitDraw beta ​

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

ts
export interface KitDraw

What a game's own renderers draw with on this renderer: shapes at their own sizes, each in a colour of its copy's (LiteRenderKit.draw)

Members ​

dispose ​

ts
dispose(): void;

Takes away every set it made and their geometries

flush ​

ts
flush(): void;

Once a frame: the renderer told what changed

once ​

ts
once(shape: KitShape, look?: KitLook): KitShapeSet;

A shape of its own, drawn once: its geometry goes with it (dispose)

shape ​

ts
shape(key: string, make: () => KitShape, look?: KitLook): KitShapeSet;

Every copy of one shape drawn one way: made the first time key is asked with this look, kept until the kit goes

stats ​

ts
readonly stats: {
        readonly sets: number;
        readonly copies: number;
    };

What it holds now: for a test, and for the debug tools