| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This sample is based upon the Ray Tracer sample by Jonas Sicking at: | 5 // This sample is based upon the Ray Tracer sample by Jonas Sicking at: |
| 6 // http://www.khronos.org/webgl/wiki/Demo_Repository | 6 // http://www.khronos.org/webgl/wiki/Demo_Repository |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * A sample GL application. | 9 * A sample GL application. |
| 10 */ | 10 */ |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 ratio = width / height; | 355 ratio = width / height; |
| 356 t -= 0.03; | 356 t -= 0.03; |
| 357 drawScene(); | 357 drawScene(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void update(when) { | 360 void update(when) { |
| 361 drawScene(); | 361 drawScene(); |
| 362 window.requestAnimationFrame(update); | 362 window.requestAnimationFrame(update); |
| 363 } | 363 } |
| 364 | 364 |
| 365 onMotionDown(num when, num x, num y) { | |
| 366 } | |
| 367 | |
| OLD | NEW |