| OLD | NEW |
| 1 /** | 1 /** |
| 2 * 3D programming in the browser. | 2 * 3D programming in the browser. |
| 3 */ | 3 */ |
| 4 library dart.dom.web_gl; | 4 library dart.dom.web_gl; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:_internal' hide deprecated; | 7 import 'dart:_internal' hide deprecated; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:html_common'; | 9 import 'dart:html_common'; |
| 10 import 'dart:_native_typed_data'; | 10 import 'dart:_native_typed_data'; |
| (...skipping 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3151 * Updates a sub-rectangle of the currently bound texture to [data]. | 3151 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3152 * | 3152 * |
| 3153 * [data] can be either an [ImageElement], a | 3153 * [data] can be either an [ImageElement], a |
| 3154 * [CanvasElement], a [VideoElement], or an [ImageData] object. | 3154 * [CanvasElement], a [VideoElement], or an [ImageData] object. |
| 3155 * | 3155 * |
| 3156 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped]. | 3156 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped]. |
| 3157 * | 3157 * |
| 3158 */ | 3158 */ |
| 3159 @JSName('texSubImage2D') | 3159 @JSName('texSubImage2D') |
| 3160 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, | 3160 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, |
| 3161 int internalFormat, int format, int type, data) native; | 3161 int xOffset, int yOffset, int format, int type, data) native; |
| 3162 | 3162 |
| 3163 /** | 3163 /** |
| 3164 * Updates a sub-rectangle of the currently bound texture to [data]. | 3164 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3165 */ | 3165 */ |
| 3166 @JSName('texSubImage2D') | 3166 @JSName('texSubImage2D') |
| 3167 void texSubImage2DTyped(int targetTexture, int levelOfDetail, | 3167 void texSubImage2DTyped(int targetTexture, int levelOfDetail, |
| 3168 int internalFormat, int width, int height, int border, int format, | 3168 int xOffset, int yOffset, int width, int height, int border, int format, |
| 3169 int type, TypedData data) native; | 3169 int type, TypedData data) native; |
| 3170 } | 3170 } |
| 3171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3172 // for details. All rights reserved. Use of this source code is governed by a | 3172 // for details. All rights reserved. Use of this source code is governed by a |
| 3173 // BSD-style license that can be found in the LICENSE file. | 3173 // BSD-style license that can be found in the LICENSE file. |
| 3174 | 3174 |
| 3175 | 3175 |
| 3176 @DocsEditable() | 3176 @DocsEditable() |
| 3177 @DomName('WebGLShader') | 3177 @DomName('WebGLShader') |
| 3178 class Shader extends Interceptor native "WebGLShader" { | 3178 class Shader extends Interceptor native "WebGLShader" { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3230 | 3230 |
| 3231 | 3231 |
| 3232 @DocsEditable() | 3232 @DocsEditable() |
| 3233 @DomName('WebGLVertexArrayObjectOES') | 3233 @DomName('WebGLVertexArrayObjectOES') |
| 3234 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 3234 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 3235 @Experimental() // experimental | 3235 @Experimental() // experimental |
| 3236 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { | 3236 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { |
| 3237 // To suppress missing implicit constructor warnings. | 3237 // To suppress missing implicit constructor warnings. |
| 3238 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } | 3238 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } |
| 3239 } | 3239 } |
| OLD | NEW |