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:async'; | 6 import 'dart:async'; |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:_internal' hide deprecated; | 8 import 'dart:_internal' hide deprecated; |
9 import 'dart:html'; | 9 import 'dart:html'; |
10 import 'dart:html_common'; | 10 import 'dart:html_common'; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 'WebGLRenderingContext': () => RenderingContext, | 51 'WebGLRenderingContext': () => RenderingContext, |
52 'WebGLRenderingContextBase': () => _WebGLRenderingContextBase, | 52 'WebGLRenderingContextBase': () => _WebGLRenderingContextBase, |
53 'WebGLShader': () => Shader, | 53 'WebGLShader': () => Shader, |
54 'WebGLShaderPrecisionFormat': () => ShaderPrecisionFormat, | 54 'WebGLShaderPrecisionFormat': () => ShaderPrecisionFormat, |
55 'WebGLTexture': () => Texture, | 55 'WebGLTexture': () => Texture, |
56 'WebGLUniformLocation': () => UniformLocation, | 56 'WebGLUniformLocation': () => UniformLocation, |
57 'WebGLVertexArrayObjectOES': () => VertexArrayObject, | 57 'WebGLVertexArrayObjectOES': () => VertexArrayObject, |
58 | 58 |
59 }; | 59 }; |
60 | 60 |
| 61 // FIXME: Can we make this private? |
| 62 final web_glBlinkFunctionMap = { |
| 63 'ANGLEInstancedArrays': () => AngleInstancedArrays.internalCreateAngleInstance
dArrays, |
| 64 'EXTBlendMinMax': () => ExtBlendMinMax.internalCreateExtBlendMinMax, |
| 65 'EXTFragDepth': () => ExtFragDepth.internalCreateExtFragDepth, |
| 66 'EXTShaderTextureLOD': () => ExtShaderTextureLod.internalCreateExtShaderTextur
eLod, |
| 67 'EXTTextureFilterAnisotropic': () => ExtTextureFilterAnisotropic.internalCreat
eExtTextureFilterAnisotropic, |
| 68 'OESElementIndexUint': () => OesElementIndexUint.internalCreateOesElementIndex
Uint, |
| 69 'OESStandardDerivatives': () => OesStandardDerivatives.internalCreateOesStanda
rdDerivatives, |
| 70 'OESTextureFloat': () => OesTextureFloat.internalCreateOesTextureFloat, |
| 71 'OESTextureFloatLinear': () => OesTextureFloatLinear.internalCreateOesTextureF
loatLinear, |
| 72 'OESTextureHalfFloat': () => OesTextureHalfFloat.internalCreateOesTextureHalfF
loat, |
| 73 'OESTextureHalfFloatLinear': () => OesTextureHalfFloatLinear.internalCreateOes
TextureHalfFloatLinear, |
| 74 'OESVertexArrayObject': () => OesVertexArrayObject.internalCreateOesVertexArra
yObject, |
| 75 'WebGLActiveInfo': () => ActiveInfo.internalCreateActiveInfo, |
| 76 'WebGLBuffer': () => Buffer.internalCreateBuffer, |
| 77 'WebGLCompressedTextureATC': () => CompressedTextureAtc.internalCreateCompress
edTextureAtc, |
| 78 'WebGLCompressedTextureETC1': () => CompressedTextureETC1.internalCreateCompre
ssedTextureETC1, |
| 79 'WebGLCompressedTexturePVRTC': () => CompressedTexturePvrtc.internalCreateComp
ressedTexturePvrtc, |
| 80 'WebGLCompressedTextureS3TC': () => CompressedTextureS3TC.internalCreateCompre
ssedTextureS3TC, |
| 81 'WebGLContextAttributes': () => ContextAttributes.internalCreateContextAttribu
tes, |
| 82 'WebGLContextEvent': () => ContextEvent.internalCreateContextEvent, |
| 83 'WebGLDebugRendererInfo': () => DebugRendererInfo.internalCreateDebugRendererI
nfo, |
| 84 'WebGLDebugShaders': () => DebugShaders.internalCreateDebugShaders, |
| 85 'WebGLDepthTexture': () => DepthTexture.internalCreateDepthTexture, |
| 86 'WebGLDrawBuffers': () => DrawBuffers.internalCreateDrawBuffers, |
| 87 'WebGLFramebuffer': () => Framebuffer.internalCreateFramebuffer, |
| 88 'WebGLLoseContext': () => LoseContext.internalCreateLoseContext, |
| 89 'WebGLProgram': () => Program.internalCreateProgram, |
| 90 'WebGLRenderbuffer': () => Renderbuffer.internalCreateRenderbuffer, |
| 91 'WebGLRenderingContext': () => RenderingContext.internalCreateRenderingContext
, |
| 92 'WebGLRenderingContextBase': () => _WebGLRenderingContextBase.internalCreate_W
ebGLRenderingContextBase, |
| 93 'WebGLShader': () => Shader.internalCreateShader, |
| 94 'WebGLShaderPrecisionFormat': () => ShaderPrecisionFormat.internalCreateShader
PrecisionFormat, |
| 95 'WebGLTexture': () => Texture.internalCreateTexture, |
| 96 'WebGLUniformLocation': () => UniformLocation.internalCreateUniformLocation, |
| 97 'WebGLVertexArrayObjectOES': () => VertexArrayObject.internalCreateVertexArray
Object, |
| 98 |
| 99 }; |
61 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 100 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
62 // for details. All rights reserved. Use of this source code is governed by a | 101 // for details. All rights reserved. Use of this source code is governed by a |
63 // BSD-style license that can be found in the LICENSE file. | 102 // BSD-style license that can be found in the LICENSE file. |
64 | 103 |
65 | 104 |
66 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES; | 105 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES; |
67 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE; | 106 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE; |
68 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS; | 107 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS; |
69 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE; | 108 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE; |
70 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE; | 109 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE; |
(...skipping 3613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3684 | 3723 |
3685 factory _WebGLRenderingContextBase._internalWrap() { | 3724 factory _WebGLRenderingContextBase._internalWrap() { |
3686 return new _WebGLRenderingContextBase._internal(); | 3725 return new _WebGLRenderingContextBase._internal(); |
3687 } | 3726 } |
3688 | 3727 |
3689 _WebGLRenderingContextBase._internal() { } | 3728 _WebGLRenderingContextBase._internal() { } |
3690 | 3729 |
3691 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 3730 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
3692 | 3731 |
3693 } | 3732 } |
OLD | NEW |