(regex, text, callback)
| 815 | // }).draw(mesh); |
| 816 | |
| 817 | function regexMap(regex, text, callback) { |
| 818 | var result; |
| 819 | while((result = regex.exec(text)) !== null) { |
| 820 | callback(result); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | // Non-standard names beginning with `gl_` must be mangled because they will |
| 825 | // otherwise cause a compiler error. |