How to use the polygonOffset function from bindings
Find comprehensive JavaScript bindings.polygonOffset code examples handpicked from public code repositorys.
GitHub: mikeseven/node-webgl
690 691 692 693 694 695 696 697 698 699 700
if(typeof param === "boolean") param= param ? 1 : 0; return _pixelStorei(pname, param); } var _polygonOffset = gl.polygonOffset; gl.polygonOffset = function polygonOffset(factor, units) { if (!(arguments.length === 2 && typeof factor === "number" && typeof units === "number")) { throw new TypeError('Expected polygonOffset(number factor, number units)'); }
264
386
0
+ 81 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)