Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: samples/o3d-webgl-samples/helloworld.html

Issue 1793004: Added rules which generate WebGL-compatible assets to samples_gen.py.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | samples/samples_gen.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « no previous file | samples/samples_gen.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698