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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/simplegl/web/flashingbox_driver.dart ('k') | samples/simplegl/web/gl_driver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * A simple GL library prototype that hides the underlying implementation. 6 * An HTML-based prototype implementation for GL.
7 */ 7 */
8 library gl; 8 library gl_html;
9 9
10 abstract class GlContext { 10 import 'dart:html';
11 int get COLOR_BUFFER_BIT; 11 export 'dart:html' show WebGLRenderingContext;
12 int get DEPTH_BUFFER_BIT; 12 export 'dart:html' show Float32Array;
13 13
14 void clearColor(num red, num green, num blue, num alpha); 14 WebGLRenderingContext gl;
15 void clear(int mask); 15
16 }
OLDNEW
« 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