UNPKG

531 BTypeScriptView Raw
1import { WebGLProgram } from './WebGLProgram';
2import { WebGLTextures } from './WebGLTextures';
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}