gl-layer
Version:
A lightweight WebGL setup layer that simplifies renderer management, uniform handling, and cleanup.
6 lines (5 loc) • 320 B
TypeScript
import { InitializeWebGLParams, ProgramInfo } from "../types/webgl.types";
export declare const initializeWebGL: ({ gl, uniforms, shader, attributes, vertexPositionName, }: InitializeWebGLParams) => {
programInfoRefCurrent: ProgramInfo;
buffersRefCurrent: import("..").BufferInitializationResult;
} | undefined;