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

Side by Side Diff: samples/simplegl/web/gl_html.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/gl_driver.dart ('k') | samples/simplegl/web/raytrace.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * An HTML-based prototype implementation for GL.
7 */
8 library gl_html;
9
10 import 'dart:html';
11 import 'gl.dart';
12
13 class HtmlGlContext extends GlContext {
14 WebGLRenderingContext _context;
15 HtmlGlContext(this._context);
16
17 int get COLOR_BUFFER_BIT => WebGLRenderingContext.COLOR_BUFFER_BIT;
18 int get DEPTH_BUFFER_BIT => WebGLRenderingContext.DEPTH_BUFFER_BIT;
19
20 void clearColor(num red, num green, num blue, num alpha) =>
21 _context.clearColor(red, green, blue, alpha);
22 void clear(int mask) =>
23 _context.clear(mask);
24 }
OLDNEW
« no previous file with comments | « samples/simplegl/web/gl_driver.dart ('k') | samples/simplegl/web/raytrace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698