Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Oct 22, 2022
1 parent 1573799 commit 739b087
Show file tree
Hide file tree
Showing 25 changed files with 3,066 additions and 832 deletions.
35 changes: 34 additions & 1 deletion dist/5.x/twgl-full.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,24 @@ export type FramebufferInfo = {
height: number;
};
export type ErrorCallback = (msg: string, lineOffset?: number) => void;
export type FullProgramSpec = {
shaders: string[];
errorCallback?: (...params: any[]) => any;
attribLocations?: {
[key: string]: number;
} | string[];
transformFeedbackVaryings?: BufferInfo | {
[key: string]: AttribInfo;
} | string[];
transformFeedbackMode?: number;
callback?: ProgramCallback;
};
export type ProgramSpec = string[] | FullProgramSpec;
export type ProgramOptions = {
errorCallback?: (...params: any[]) => any;
attribLocations?: {
[key: string]: number;
};
} | string[];
transformFeedbackVaryings?: BufferInfo | {
[key: string]: AttribInfo;
} | string[];
Expand Down Expand Up @@ -291,6 +304,26 @@ export function setBuffersAndAttributes(gl: WebGLRenderingContext, setters: Prog
}, buffers: BufferInfo | VertexArrayInfo): void;
export function createProgramInfoFromProgram(gl: WebGLRenderingContext, program: WebGLProgram): ProgramInfo;
export function createProgramInfo(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): ProgramInfo;
export function createPrograms(gl: WebGLRenderingContext, programSpecs: {
[key: string]: ProgramSpec;
}, programOptions?: ProgramOptions): {
[key: string]: WebGLProgram;
};
export function createProgramInfos(gl: WebGLRenderingContext, programSpecs: {
[key: string]: ProgramSpec;
}, programOptions?: ProgramOptions): {
[key: string]: ProgramInfo;
};
export function createProgramsAsync(gl: WebGLRenderingContext, programSpecs: {
[key: string]: ProgramSpec;
}, programOptions?: ProgramOptions): {
[key: string]: WebGLProgram;
};
export function createProgramInfosAsync(gl: WebGLRenderingContext, programSpecs: {
[key: string]: ProgramSpec;
}, programOptions?: ProgramOptions): Promise<{
[key: string]: ProgramInfo;
}>;


export function getBytesPerElementForInternalFormat(internalFormat: number, type: number): number;
Expand Down
620 changes: 416 additions & 204 deletions dist/5.x/twgl-full.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/5.x/twgl-full.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/5.x/twgl-full.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 739b087

Please sign in to comment.