MCPcopy Create free account
hub / github.com/microsoft/SandDance / glFunctionArgsToString

Function glFunctionArgsToString

docs/tests/v2/es6/js/sanddance.js:34569–34578  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

34567 * @return {string} The arguments as a string.
34568 */
34569function 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
34581function makePropertyWrapper(wrapper, original, propertyName) {

Callers

nothing calls this directly

Calls 1

glFunctionArgToStringFunction · 0.85

Tested by

no test coverage detected