1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 Copyright (c) 2011 The Native Client Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
10 <title>Interactive Cube Example</title>
11 <script type="text/javascript">
12 // Provide the tumbler namespace
15 <script type="text/javascript" src="bind.js"></script>
16 <script type="text/javascript" src="dragger.js"></script>
17 <script type="text/javascript" src="tumbler.js"></script>
18 <script type="text/javascript" src="vector3.js"></script>
19 <script type="text/javascript" src="trackball.js"></script>
22 <h1>Interactive Cube Example</h1>
24 The Native Client module executed in this page draws a 3D cube
25 and allows you to rotate it using a virtual trackball method.
27 <div id="tumbler_view"></div>
28 <script type="text/javascript">
29 tumbler.application = new tumbler.Application();
30 tumbler.application.run('tumbler_view');