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

Side by Side Diff: samples/openglui/src/openglui_raytrace.dart

Issue 13345002: Cleaned up OpenGLUI samples and added Blasteroids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698