05-input/scripts/demo05-02.js
/**
 * Entry point of the application.
 */
Entry point of the application.
Entry point of the application .
function main() {
    var c = document.getElementById('c');
    c.width = c.clientWidth;
    c.height = c.clientHeight;
    gl = WebGLUtils.setupWebGL( c );
    if(!gl) {
        return;
    }
    init();
    requestId = requestAnimFrame( update, document.getElementById('c') );
}
function main ( ) { var c = document . getElementById ( 'c' ) ; c . width = c . clientWidth ; c . height = c . clientHeight ; gl = WebGLUtils . setupWebGL ( c ) ; if ( ! gl ) { return ; } init ( ) ; requestId = requestAnimFrame ( update , document . getElementById ( 'c' ) ) ; }
Entry point of the application.
Entry point of the application .
// Get the WebGL canvas, and initialize WebGL // Escape on any error // Initialize all variables and display the scene // Draw the scene