How to use the framebufferTextureLayer function from bindings
Find comprehensive JavaScript bindings.framebufferTextureLayer code examples handpicked from public code repositorys.
GitHub: lfdoherty/node-opengl-46
600 601 602 603 604 605 606 607 608 609 610
throw new TypeError('Expected framebufferTexture2D(number target, number attachment, number textarget, WebGLTexture texture, number level)'); } return _framebufferTexture2D(target, attachment, textarget, texture ? texture._ : 0, level); } var _framebufferTextureLayer = gl.framebufferTextureLayer; gl.framebufferTextureLayer = function framebufferTextureLayer(target, attachment, texture, level, layer) { if (!(arguments.length === 5 && typeof target === "number" && typeof attachment === "number" && typeof layer === "number" && (texture === null || texture instanceof gl.WebGLTexture) && typeof level === "number")) { throw new TypeError('Expected framebufferTextureLayer(number target, number attachment, WebGLTexture texture, number level, number layer)'); }
+ 137 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)