Greggman

Results 356 comments of Greggman

Well I ended up checking it in for both regular uniforms and uniform blocks. Unlike the example above you just use `setUniforms` and `setBlockUniforms` like normal except you can pass...

Is there a reason to call the callback if `options.src` is an element? It's not asynchronous.

Most things are pretty straight forward. ``` const tex = twgl.createTexture(...); gl.deleteTexture(tex); ``` ``` const textures = twgl.createTextures(...); Object.values(textures).forEach(tex => gl.deleteTexture(tex)); ``` ``` const fbi = twgl.createFrameBufferInfo(...); gl.deleteFramebuffer(fbi.framebuffer); for (const...

maybe I can separate them into separate repos but still have twgl-full include the math and the primitives. The math stuff doesn't require anything so there would be no code...

Thanks for the suggestion. Just fyi, first off there's twgl.js vs twgl-full.js in the dist folder. twgl.js doesn't include the math and primitives. In npm there's 2 different libraries, twgl.js,...

I still know almost nothing about typescript dev but this sounds like a typescript issue, not a twgl issue. You need to figure out how to include WebGL2 definitions in...

So is there something I should add somewhere to make this work? A setting in package.json? A comment in `twgl.d.ts`? I seems like defining placeholder types is the wrong solution...

I think it was probably my mistake to make that function public but if you want to make arrayName optional, or give it a default of `""` that's fine with...

Looks right to me. You can use Float32Array if you want ``` let texbuffer = new Float32Array(width * height * 4); let off = 0; for(let i = 0; i...