src/app.js
/*
 * Initialize the application.
 *
 * c: The canvas object to use
 * g: The WebGL context to use
 */
Initialize the application.
c: The canvas object to use
g: The WebGL context to use
Initialize the application . c : The canvas object to use g : The WebGL context to use
function init(c, g) {
	if (canvas && gl) {
		return;
	}
	canvas = c;
	gl = g;
	window.addEventListener('resize', resize, false);
	input.init();
	resize();
	start();
}
function init ( c , g ) { if ( canvas && gl ) { return ; } canvas = c ; gl = g ; window . addEventListener ( 'resize' , resize , false ) ; input . init ( ) ; resize ( ) ; start ( ) ; }
Initialize the application.
Initialize the application .