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