OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2009, Google Inc. | 2 Copyright 2009, Google Inc. |
3 All rights reserved. | 3 All rights reserved. |
4 | 4 |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions are | 6 modification, are permitted provided that the following conditions are |
7 met: | 7 met: |
8 | 8 |
9 * Redistributions of source code must retain the above copyright | 9 * Redistributions of source code must retain the above copyright |
10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 g_finished = true; // for selenium testing. | 115 g_finished = true; // for selenium testing. |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 /** | 119 /** |
120 * Creates the client area. | 120 * Creates the client area. |
121 */ | 121 */ |
122 function init() { | 122 function init() { |
123 o3djs.webgl.makeClients(initStep2); | 123 o3djs.webgl.makeClients(initStep2); |
| 124 // The following call enables a debug WebGL context, which makes |
| 125 // debugging much easier. |
| 126 // o3djs.webgl.makeClients(initStep2, undefined, undefined, undefined, undefin
ed, undefined, true); |
124 } | 127 } |
125 | 128 |
126 /** | 129 /** |
127 * Remove any callbacks so they don't get called after the page has unloaded. | 130 * Remove any callbacks so they don't get called after the page has unloaded. |
128 */ | 131 */ |
129 function unload() { | 132 function unload() { |
130 if (g_client) { | 133 if (g_client) { |
131 g_client.cleanup(); | 134 g_client.cleanup(); |
132 } | 135 } |
133 } | 136 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 </head> | 168 </head> |
166 <body> | 169 <body> |
167 <h1>Loading a scene.</h1> | 170 <h1>Loading a scene.</h1> |
168 This tutorial shows how we load and display a scene in O3D. | 171 This tutorial shows how we load and display a scene in O3D. |
169 <br/> | 172 <br/> |
170 <!-- Start of O3D plugin --> | 173 <!-- Start of O3D plugin --> |
171 <div id="o3d" width="600" height="600"></div> | 174 <div id="o3d" width="600" height="600"></div> |
172 <!-- End of O3D plugin --> | 175 <!-- End of O3D plugin --> |
173 </body> | 176 </body> |
174 </html> | 177 </html> |
OLD | NEW |