gw-canvas
Version:
Library for rendering colorized bitmap fonts. Very fast, suitable for applications where the whole canvas needs frequent redrawing.
10 lines (9 loc) • 413 B
TypeScript
declare type GL = WebGL2RenderingContext;
export declare const QUAD: number[];
export declare function createProgram(gl: GL, ...sources: string[]): WebGLProgram;
export declare function createTexture(gl: GL): WebGLTexture;
export declare function createGeometry(gl: GL, attribs: Record<string, number>, width: number, height: number): {
position: WebGLBuffer | null;
uv: WebGLBuffer | null;
};
export {};