generateDefines method

dynamic generateDefines(
  1. dynamic defines
)

Implementation

generateDefines(defines) {
  var chunks = [];

  if (defines != null) {
    for (var name in defines.keys) {
      var value = defines[name];

      if (value == false) continue;

      // print("WebGLProgramExtra generateDefines name: ${name} value: ${value} ");
      chunks.add('#define $name $value');
    }
  }

  return chunks.join('\n');
}