Comparing version 4.22.1 to 4.23.0
@@ -92,2 +92,3 @@ | ||
transformFeedbackMode?: number; | ||
callback?: ProgramCallback; | ||
}; | ||
@@ -260,3 +261,10 @@ export type TransformFeedbackInfo = { | ||
export function getBindPointForSamplerType(): void; | ||
export type ProgramCallback = (err?: string, result?: WebGLProgram | ProgramInfo) => void; | ||
export function prepShaderSource(shaderSource: string): any; | ||
export function checkShaderStatus(gl: WebGLRenderingContext, shader: WebGLShader, errFn?: ErrorCallback): boolean; | ||
export function createProgram(gl: WebGLRenderingContext, shaders: WebGLShader[] | string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram; | ||
export function createProgramAsync(gl: WebGLRenderingContext, shaders: WebGLShader[] | string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): Promise<WebGLProgram>; | ||
export function createProgramInfoAsync(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): Promise<ProgramInfo>; | ||
export function checkForProgramLinkCompletionAsync(gl: WebGLRenderingContext, program: WebGLProgram, progOptions: ProgramOptions): void; | ||
export function checkProgramStatus(gl: WebGLRenderingContext, program: WebGLProgram, errFn?: ErrorCallback): boolean; | ||
export function createProgramFromScripts(gl: WebGLRenderingContext, shaderScriptIds: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram; | ||
@@ -372,2 +380,3 @@ export function createProgramFromSources(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram; | ||
export function negate(m: m4.Mat4, dst?: m4.Mat4): m4.Mat4; | ||
export function create(): m4.Mat4; | ||
export function copy(m: m4.Mat4, dst?: m4.Mat4): m4.Mat4; | ||
@@ -374,0 +383,0 @@ export function identity(dst?: m4.Mat4): m4.Mat4; |
@@ -92,2 +92,3 @@ | ||
transformFeedbackMode?: number; | ||
callback?: ProgramCallback; | ||
}; | ||
@@ -260,3 +261,10 @@ export type TransformFeedbackInfo = { | ||
export function getBindPointForSamplerType(): void; | ||
export type ProgramCallback = (err?: string, result?: WebGLProgram | ProgramInfo) => void; | ||
export function prepShaderSource(shaderSource: string): any; | ||
export function checkShaderStatus(gl: WebGLRenderingContext, shader: WebGLShader, errFn?: ErrorCallback): boolean; | ||
export function createProgram(gl: WebGLRenderingContext, shaders: WebGLShader[] | string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram; | ||
export function createProgramAsync(gl: WebGLRenderingContext, shaders: WebGLShader[] | string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): Promise<WebGLProgram>; | ||
export function createProgramInfoAsync(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): Promise<ProgramInfo>; | ||
export function checkForProgramLinkCompletionAsync(gl: WebGLRenderingContext, program: WebGLProgram, progOptions: ProgramOptions): void; | ||
export function checkProgramStatus(gl: WebGLRenderingContext, program: WebGLProgram, errFn?: ErrorCallback): boolean; | ||
export function createProgramFromScripts(gl: WebGLRenderingContext, shaderScriptIds: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram; | ||
@@ -263,0 +271,0 @@ export function createProgramFromSources(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram; |
{ | ||
"name": "twgl.js", | ||
"version": "4.22.1", | ||
"version": "4.23.0", | ||
"description": "A Tiny WebGL helper library", | ||
@@ -5,0 +5,0 @@ "main": "dist/4.x/twgl-full.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1077780
26535