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

Unified Diff: samples/openglui/web/gl_driver.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, 9 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 side-by-side diff with in-line comments
Download patch
Index: samples/openglui/web/gl_driver.dart
===================================================================
--- samples/openglui/web/gl_driver.dart (revision 20700)
+++ samples/openglui/web/gl_driver.dart (working copy)
@@ -10,17 +10,9 @@
* A driver to run GL applications in the browser.
*/
-void glMain(setup, resize, draw, [onMotionDown]) {
+void glMain(setup, resize) {
// Setup a Canvas for GL to run inside.
final canvas = getDisplayCanvas(resize);
- setup(canvas, canvas.width, canvas.height);
-
- canvas.on.mouseDown.add((e) {
- if (onMotionDown != null) {
- onMotionDown(0, 0, 0);
- }
- });
-
- animate(draw);
+ setup(canvas, canvas.width, canvas.height, 2);
}
« no previous file with comments | « samples/openglui/web/flashingbox_driver.dart ('k') | samples/openglui/web/openglui_canvas_tests_driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698