| OLD | NEW |
| (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 } | |
| OLD | NEW |