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'; | 7 import 'dart:_internal'; |
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 2988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 * Sets the currently bound texture to [data]. | 2999 * Sets the currently bound texture to [data]. |
3000 * | 3000 * |
3001 * [data] can be either an [ImageElement], a | 3001 * [data] can be either an [ImageElement], a |
3002 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object. | 3002 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object. |
3003 * | 3003 * |
3004 * This is deprecated in favor of [texImage2D]. | 3004 * This is deprecated in favor of [texImage2D]. |
3005 */ | 3005 */ |
3006 @Deprecated("Use texImage2D") | 3006 @Deprecated("Use texImage2D") |
3007 void texImage2DUntyped(int targetTexture, int levelOfDetail, | 3007 void texImage2DUntyped(int targetTexture, int levelOfDetail, |
3008 int internalFormat, int format, int type, data) { | 3008 int internalFormat, int format, int type, data) { |
3009 texImage2D(targetText, levelOfDetail, internalFormat, format, type, data); | 3009 texImage2D(targetTexture, levelOfDetail, internalFormat, format, type, data)
; |
3010 } | 3010 } |
3011 | 3011 |
3012 /** | 3012 /** |
3013 * Sets the currently bound texture to [data]. | 3013 * Sets the currently bound texture to [data]. |
3014 * | 3014 * |
3015 * This is deprecated in favour of [texImage2D]. | 3015 * This is deprecated in favour of [texImage2D]. |
3016 */ | 3016 */ |
3017 @Deprecated("Use texImage2D") | 3017 @Deprecated("Use texImage2D") |
3018 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat, | 3018 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat, |
3019 int width, int height, int border, int format, int type, TypedData data) { | 3019 int width, int height, int border, int format, int type, TypedData data) { |
(...skipping 24 matching lines...) Expand all Loading... |
3044 int type, TypedData data) { | 3044 int type, TypedData data) { |
3045 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset, | 3045 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset, |
3046 width, height, format, type, data); | 3046 width, height, format, type, data); |
3047 } | 3047 } |
3048 | 3048 |
3049 /** | 3049 /** |
3050 * Set the bufferData to [data]. | 3050 * Set the bufferData to [data]. |
3051 */ | 3051 */ |
3052 @Deprecated("Use bufferData") | 3052 @Deprecated("Use bufferData") |
3053 void bufferDataTyped(int target, TypedData data, int usage) { | 3053 void bufferDataTyped(int target, TypedData data, int usage) { |
3054 bufferData2D(targetTexture, levelOfDetail, xOffset, yOffset, | 3054 bufferData(target, data, usage); |
3055 format, type, data); | |
3056 } | 3055 } |
3057 | 3056 |
3058 /** | 3057 /** |
3059 * Set the bufferSubData to [data]. | 3058 * Set the bufferSubData to [data]. |
3060 */ | 3059 */ |
3061 @Deprecated("Use bufferSubData") | 3060 @Deprecated("Use bufferSubData") |
3062 void bufferSubDataTyped(int target, TypedData data, int usage) { | 3061 void bufferSubDataTyped(int target, int offset, TypedData data) { |
3063 bufferSubData2D(targetTexture, levelOfDetail, xOffset, yOffset, | 3062 bufferSubData(target, offset, data); |
3064 format, type, data); | |
3065 } | 3063 } |
3066 } | 3064 } |
3067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3068 // for details. All rights reserved. Use of this source code is governed by a | 3066 // for details. All rights reserved. Use of this source code is governed by a |
3069 // BSD-style license that can be found in the LICENSE file. | 3067 // BSD-style license that can be found in the LICENSE file. |
3070 | 3068 |
3071 | 3069 |
3072 @DocsEditable() | 3070 @DocsEditable() |
3073 @DomName('WebGL2RenderingContext') | 3071 @DomName('WebGL2RenderingContext') |
3074 @Experimental() // untriaged | 3072 @Experimental() // untriaged |
(...skipping 2940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6015 // BSD-style license that can be found in the LICENSE file. | 6013 // BSD-style license that can be found in the LICENSE file. |
6016 | 6014 |
6017 | 6015 |
6018 @DocsEditable() | 6016 @DocsEditable() |
6019 @DomName('WebGLRenderingContextBase') | 6017 @DomName('WebGLRenderingContextBase') |
6020 @Experimental() // untriaged | 6018 @Experimental() // untriaged |
6021 abstract class _WebGLRenderingContextBase extends Interceptor { | 6019 abstract class _WebGLRenderingContextBase extends Interceptor { |
6022 // To suppress missing implicit constructor warnings. | 6020 // To suppress missing implicit constructor warnings. |
6023 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } | 6021 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } |
6024 } | 6022 } |
OLD | NEW |