* Converts the arguments of a WebGL function to a string. * Attempts to convert enum arguments to strings. * * @param {string} functionName the name of the WebGL function. * @param {number} args The arguments. * @return {string} The arguments as a string.
(functionName, args)
| 34567 | * @return {string} The arguments as a string. |
| 34568 | */ |
| 34569 | function glFunctionArgsToString(functionName, args) { |
| 34570 | // apparently we can't do args.join(","); |
| 34571 | var argStr = ""; |
| 34572 | var numArgs = args.length; |
| 34573 | for (var ii = 0; ii < numArgs; ++ii) { |
| 34574 | argStr += ((ii == 0) ? '' : ', ') + |
| 34575 | glFunctionArgToString(functionName, numArgs, ii, args[ii]); |
| 34576 | } |
| 34577 | return argStr; |
| 34578 | }; |
| 34579 | |
| 34580 | |
| 34581 | function makePropertyWrapper(wrapper, original, propertyName) { |
nothing calls this directly
no test coverage detected