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

Unified Diff: samples/simplegl/web/gl.dart

Issue 11362256: Added raytracer to gl samples. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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
« no previous file with comments | « samples/simplegl/web/flashingbox_driver.dart ('k') | samples/simplegl/web/gl_driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/simplegl/web/gl.dart
diff --git a/samples/simplegl/web/gl.dart b/samples/simplegl/web/gl.dart
index b6d66c483e93286cf56deb0e9b75951920ab0666..daf22b586c952d0da71d0b3ccae4f3911cde74e9 100644
--- a/samples/simplegl/web/gl.dart
+++ b/samples/simplegl/web/gl.dart
@@ -3,14 +3,13 @@
// BSD-style license that can be found in the LICENSE file.
/**
- * A simple GL library prototype that hides the underlying implementation.
+ * An HTML-based prototype implementation for GL.
*/
-library gl;
+library gl_html;
-abstract class GlContext {
- int get COLOR_BUFFER_BIT;
- int get DEPTH_BUFFER_BIT;
+import 'dart:html';
+export 'dart:html' show WebGLRenderingContext;
+export 'dart:html' show Float32Array;
+
+WebGLRenderingContext gl;
- void clearColor(num red, num green, num blue, num alpha);
- void clear(int mask);
-}
« no previous file with comments | « samples/simplegl/web/flashingbox_driver.dart ('k') | samples/simplegl/web/gl_driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698