twgl.js
twgl.js copied to clipboard
better typings fro create textures
This allows intelli-sense to infer result keys
export function createTextures<O extends TexturesOptions, R = {[key in keyof O]: WebGLTexture}>(gl: WebGLRenderingContext, options: O, callback?: TexturesReadyCallback): R;