Comparing version 4.19.1 to 4.19.2
@@ -73,7 +73,7 @@ | ||
layer?: number; | ||
attachment?: WebGLObject; | ||
attachment?: WebGLRenderbuffer | WebGLTexture; | ||
}; | ||
export type FramebufferInfo = { | ||
framebuffer: WebGLFramebuffer; | ||
attachments: WebGLObject[]; | ||
attachments: (WebGLRenderbuffer | WebGLTexture)[]; | ||
width: number; | ||
@@ -80,0 +80,0 @@ height: number; |
@@ -73,7 +73,7 @@ | ||
layer?: number; | ||
attachment?: WebGLObject; | ||
attachment?: WebGLRenderbuffer | WebGLTexture; | ||
}; | ||
export type FramebufferInfo = { | ||
framebuffer: WebGLFramebuffer; | ||
attachments: WebGLObject[]; | ||
attachments: (WebGLRenderbuffer | WebGLTexture)[]; | ||
width: number; | ||
@@ -80,0 +80,0 @@ height: number; |
{ | ||
"name": "twgl.js", | ||
"version": "4.19.1", | ||
"version": "4.19.2", | ||
"description": "A Tiny WebGL helper library", | ||
@@ -29,3 +29,5 @@ "main": "dist/4.x/twgl-full.js", | ||
"WebGL", | ||
"twgl" | ||
"twgl", | ||
"util", | ||
"helper" | ||
], | ||
@@ -32,0 +34,0 @@ "author": "Greggman", |
@@ -321,3 +321,3 @@ TWGL: A Tiny WebGL helper Library<div id="pronounce" style="font-size: xx-small;">[rhymes with wiggle]</div> | ||
gl.bindTexture(gl.TEXTURE_2D, tex); | ||
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array([ | ||
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 2, 2, 0, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array([ | ||
255,255,255,255, | ||
@@ -335,3 +335,3 @@ 192,192,192,255, | ||
gl.pixelStorei(gl.UNPACK_ALIGNMENT, 1); | ||
gl.texImage2D(gl.TEXTURE_2D, 0, gl.LUMINANCE, gl.LUMINANCE, gl.UNSIGNED_BYTE, new Uint8Array([ | ||
gl.texImage2D(gl.TEXTURE_2D, 0, gl.LUMINANCE, 1, 8, 0, gl.LUMINANCE, gl.UNSIGNED_BYTE, new Uint8Array([ | ||
255, | ||
@@ -338,0 +338,0 @@ 128, |
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
1027353