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

Unified Diff: samples/openglui/src/flashingbox.dart

Issue 24698003: Removed the openglui sample app. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/src/flashingbox.dart
diff --git a/samples/openglui/src/flashingbox.dart b/samples/openglui/src/flashingbox.dart
deleted file mode 100644
index 0bec828260c35ee040f9472d495f59d4c6365025..0000000000000000000000000000000000000000
--- a/samples/openglui/src/flashingbox.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * A sample GL application.
- */
-library flashingbox;
-
-import 'gl.dart';
-
-WebGLRenderingContext gl = null;
-
-num r;
-num g;
-num b;
-
-void setup(canvas, int w, int h, int f) {
- if (canvas == null) {
- canvas = new CanvasElement(width: w, height: h);
- }
- gl = canvas.getContext("experimental-webgl");
- r = 0;
- g = 0;
- b = 0;
- resize(w, h);
- window.requestAnimationFrame(update);
- log("Done setup");
-}
-
-void resize(int width, int height) {
- gl.viewport(0, 0, width, height);
-}
-
-void update(when) {
- gl.clearColor(r, g, b, 1.0);
- gl.clear(WebGLRenderingContext.COLOR_BUFFER_BIT |
- WebGLRenderingContext.DEPTH_BUFFER_BIT);
- r = r + 0.1;
- if (r > 1) {
- r = 0;
- g = g + 0.1;
- }
- if (g > 1) {
- g = 0;
- b = b + 0.1;
- }
- if (b > 1) {
- b = 0;
- }
- glSwapBuffers();
- window.requestAnimationFrame(update);
-}
-
« dart.gyp ('K') | « samples/openglui/src/chrome.hex ('k') | samples/openglui/src/gl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698