UNPKG

537 BTypeScriptView Raw
1import { WebGLProgram } from "./WebGLProgram.js";
2import { WebGLTextures } from "./WebGLTextures.js";
3
4export class WebGLUniforms {
5 constructor(gl: WebGLRenderingContext, program: WebGLProgram);
6
7 setValue(gl: WebGLRenderingContext, name: string, value: any, textures: WebGLTextures): void;
8 setOptional(gl: WebGLRenderingContext, object: any, name: string): void;
9
10 static upload(gl: WebGLRenderingContext, seq: any, values: any[], textures: WebGLTextures): void;
11 static seqWithValue(seq: any, values: any[]): any[];
12}