Tone.js/gulp/fragments/before.frag

26 lines
487 B
GLSL
Raw Normal View History

2016-03-24 15:41:02 +00:00
(function(root, factory){
//UMD
if ( typeof define === "function" && define.amd ) {
define(function() {
return factory();
});
} else if (typeof module === "object") {
module.exports = factory();
} else {
root.Tone = factory();
}
}(this, function(){
"use strict";
2016-03-24 15:41:02 +00:00
var Tone;
//constructs the main Tone object
2015-05-23 22:14:03 +00:00
function Main(func){
Tone = func();
}
//invokes each of the modules with the main Tone object as the argument
2015-05-23 22:14:03 +00:00
function Module(func){
func(Tone);
2016-03-24 15:41:02 +00:00
}