UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

34 lines 999 B
import { TgdTexture2D } from "../../texture"; import { TgdPainter } from "../painter"; import { TgdContext } from "../../context"; export interface TgdPainterLinesOptions { /** * Flatten array of points: * `[ x1, y1, z1, u1, x2, y2, z2, u2, ... ]` */ dataPoint: Float32Array; texture?: TgdTexture2D; } export declare class TgdPainterLines extends TgdPainter { readonly context: TgdContext; readonly count: number; texture: TgdTexture2D; /** * V coord on the texture. * * It allows you to change the color palette * by selecting a line in the texture. */ v: number; private readonly dataPoint; private readonly textureMustBeDeleted; private readonly dataset; private readonly program; private readonly vao; constructor(context: TgdContext, options: TgdPainterLinesOptions); delete(): void; paint(): void; private createDataset; private createProgram; } //# sourceMappingURL=lines.d.ts.map