How to use the WebGLFramebuffer function from bindings
Find comprehensive JavaScript bindings.WebGLFramebuffer code examples handpicked from public code repositorys.
GitHub: mikeseven/node-webgl
223 224 225 226 227 228 229 230 231 232 233
var _createFramebuffer = gl.createFramebuffer; gl.createFramebuffer = function () { if (!(arguments.length === 0)) { throw new TypeError('Expected createFramebuffer()'); } return new gl.WebGLFramebuffer(_createFramebuffer()); } var _createProgram = gl.createProgram; gl.createProgram = function createProgram() {
264
386
0
+ 81 other calls in file
GitHub: lfdoherty/node-opengl-46
684 685 686 687 688 689 690 691 692 693
const result = _getParameter(pname) if(specialParametersSet.has(pname)){ if(pname === specialParameters.texture2d || pname === specialParameters.texture2dArray){ return new gl.WebGLTexture(result) }else if(pname === specialParameters.framebuffer || pname === specialParameters.drawFramebuffer || pname === specialParameters.readFramebuffer){ return new gl.WebGLFramebuffer(result) }else if(bufferParams.has(pname)){ return new gl.WebGLBuffer(result) } throw new Error('TODO: wrap parameter value')
0
0
0
+ 275 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)