HTML Headers

The HTML headers list the JavaScript source files needed to run the application. Order matters here, as symbols must be defined before they are used.

〈Headers〉 ≡

The webgl sources are provided by the Khronos Group, the standards body that defines WebGL. These sources include facilities that ease cross-browser compatibility and GL debugging.

    <script type="text/javascript" src="webgl-utils.js"></script>
    <script type="text/javascript" src="webgl-debug.js"></script>

The cuon sources are provided by the authors of the WebGL textbook. These sources provide basic shader and matrix handling facilities that are required by WebGL applications but not built into WebGL itself.

    <script type="text/javascript" src="cuon-utils.js"></script>
    <script type="text/javascript" src="cuon-matrix.js"></script>

Finally, prog.js is the source of the application.

    <script type="text/javascript" src="prog.js"></script>