@nativescript/canvas 2.0.0-alpha.3 → 2.0.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +212 -25
- package/Canvas/common.js +677 -460
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +9 -0
- package/Canvas/index.android.js +162 -53
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +12 -0
- package/Canvas/index.ios.d.ts +6 -0
- package/Canvas/index.ios.js +151 -66
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +1 -3
- package/Canvas2D/CanvasRenderingContext2D/index.js +104 -214
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +3 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +6 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +34 -39
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Paint.js +2 -3
- package/Dom/Paint.js.map +1 -1
- package/Dom/shapes/Circle.js +1 -2
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +47 -34
- package/ImageBitmap/index.js.map +1 -1
- package/LICENSE +201 -0
- package/SVG/SVG.js +1 -1
- package/SVG/SVG.js.map +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +4 -12
- package/WebGL/WebGLExtensions/index.js +27 -77
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +0 -2
- package/WebGL/WebGLRenderingContext/common.js +0 -10
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +15 -15
- package/WebGL/WebGLRenderingContext/index.js +183 -578
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +109 -281
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/package.json +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +137 -64
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +142 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2673 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5734 -2393
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +42 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +42 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +274 -128
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +142 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2673 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5734 -2393
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +42 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +42 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5734 -2393
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +42 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +42 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +4 -1
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +190 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1534 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +8 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +304 -36
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +44 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +34 -16
- package/platforms/ios/src/cpp/JSICallback.h +61 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +49 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +32 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +187 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +20 -14
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +20 -11
- package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
- package/platforms/ios/src/cpp/URLImpl.h +119 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +26 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2413 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +267 -16
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +203 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +26 -12
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +806 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +172 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +449 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +41 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +50 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +46 -10
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +40 -5
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6454 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +262 -390
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +46 -24
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +17 -11
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +66 -11
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +44 -8
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +25 -11
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +25 -5
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +25 -5
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +51 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +38 -15
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +41 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +127 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -12
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4375 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +139 -343
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +40 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +44 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +42 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +43 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/src-native/ios/Headers/include/APIDesign.md +72 -0
- package/src-native/ios/Headers/include/DEPS +10 -0
- package/src-native/ios/Headers/include/DIR_METADATA +11 -0
- package/src-native/ios/Headers/include/OWNERS +23 -0
- package/src-native/ios/Headers/include/cppgc/DEPS +8 -0
- package/src-native/ios/Headers/include/cppgc/OWNERS +2 -0
- package/src-native/ios/Headers/include/cppgc/README.md +133 -0
- package/src-native/ios/Headers/include/cppgc/allocation.h +310 -0
- package/src-native/ios/Headers/include/cppgc/common.h +29 -0
- package/src-native/ios/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/src-native/ios/Headers/include/cppgc/custom-space.h +97 -0
- package/src-native/ios/Headers/include/cppgc/default-platform.h +67 -0
- package/src-native/ios/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/src-native/ios/Headers/include/cppgc/explicit-management.h +100 -0
- package/src-native/ios/Headers/include/cppgc/garbage-collected.h +106 -0
- package/src-native/ios/Headers/include/cppgc/heap-consistency.h +266 -0
- package/src-native/ios/Headers/include/cppgc/heap-state.h +82 -0
- package/src-native/ios/Headers/include/cppgc/heap-statistics.h +120 -0
- package/src-native/ios/Headers/include/cppgc/heap.h +206 -0
- package/src-native/ios/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/src-native/ios/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/src-native/ios/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/src-native/ios/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/src-native/ios/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/src-native/ios/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/src-native/ios/Headers/include/cppgc/internal/logging.h +50 -0
- package/src-native/ios/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/src-native/ios/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/src-native/ios/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/src-native/ios/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/src-native/ios/Headers/include/cppgc/liveness-broker.h +77 -0
- package/src-native/ios/Headers/include/cppgc/macros.h +26 -0
- package/src-native/ios/Headers/include/cppgc/member.h +291 -0
- package/src-native/ios/Headers/include/cppgc/name-provider.h +65 -0
- package/src-native/ios/Headers/include/cppgc/object-size-trait.h +58 -0
- package/src-native/ios/Headers/include/cppgc/persistent.h +370 -0
- package/src-native/ios/Headers/include/cppgc/platform.h +156 -0
- package/src-native/ios/Headers/include/cppgc/prefinalizer.h +75 -0
- package/src-native/ios/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/src-native/ios/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/src-native/ios/Headers/include/cppgc/source-location.h +92 -0
- package/src-native/ios/Headers/include/cppgc/testing.h +106 -0
- package/src-native/ios/Headers/include/cppgc/trace-trait.h +116 -0
- package/src-native/ios/Headers/include/cppgc/type-traits.h +240 -0
- package/src-native/ios/Headers/include/cppgc/visitor.h +379 -0
- package/src-native/ios/Headers/include/js_protocol-1.2.json +936 -0
- package/src-native/ios/Headers/include/js_protocol-1.3.json +1112 -0
- package/src-native/ios/Headers/include/js_protocol.pdl +1709 -0
- package/src-native/ios/Headers/include/libffi/arm64/ffi.h +524 -0
- package/src-native/ios/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/src-native/ios/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/src-native/ios/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/src-native/ios/Headers/include/libffi.h +12 -0
- package/src-native/ios/Headers/include/libplatform/DEPS +9 -0
- package/src-native/ios/Headers/include/libplatform/libplatform-export.h +29 -0
- package/src-native/ios/Headers/include/libplatform/libplatform.h +106 -0
- package/src-native/ios/Headers/include/libplatform/v8-tracing.h +333 -0
- package/src-native/ios/Headers/include/v8-array-buffer.h +433 -0
- package/src-native/ios/Headers/include/v8-callbacks.h +397 -0
- package/src-native/ios/Headers/include/v8-container.h +129 -0
- package/src-native/ios/Headers/include/v8-context.h +407 -0
- package/src-native/ios/Headers/include/v8-cppgc.h +215 -0
- package/src-native/ios/Headers/include/v8-data.h +80 -0
- package/src-native/ios/Headers/include/v8-date.h +43 -0
- package/src-native/ios/Headers/include/v8-debug.h +168 -0
- package/src-native/ios/Headers/include/v8-embedder-heap.h +218 -0
- package/src-native/ios/Headers/include/v8-embedder-state-scope.h +51 -0
- package/src-native/ios/Headers/include/v8-exception.h +217 -0
- package/src-native/ios/Headers/include/v8-extension.h +62 -0
- package/src-native/ios/Headers/include/v8-external.h +37 -0
- package/src-native/ios/Headers/include/v8-fast-api-calls.h +939 -0
- package/src-native/ios/Headers/include/v8-forward.h +81 -0
- package/src-native/ios/Headers/include/v8-function-callback.h +475 -0
- package/src-native/ios/Headers/include/v8-function.h +125 -0
- package/src-native/ios/Headers/include/v8-initialization.h +315 -0
- package/src-native/ios/Headers/include/v8-inspector-protocol.h +13 -0
- package/src-native/ios/Headers/include/v8-inspector.h +376 -0
- package/src-native/ios/Headers/include/v8-internal.h +661 -0
- package/src-native/ios/Headers/include/v8-isolate.h +1709 -0
- package/src-native/ios/Headers/include/v8-json.h +47 -0
- package/src-native/ios/Headers/include/v8-local-handle.h +455 -0
- package/src-native/ios/Headers/include/v8-locker.h +149 -0
- package/src-native/ios/Headers/include/v8-maybe.h +137 -0
- package/src-native/ios/Headers/include/v8-memory-span.h +43 -0
- package/src-native/ios/Headers/include/v8-message.h +216 -0
- package/src-native/ios/Headers/include/v8-metrics.h +255 -0
- package/src-native/ios/Headers/include/v8-microtask-queue.h +152 -0
- package/src-native/ios/Headers/include/v8-microtask.h +28 -0
- package/src-native/ios/Headers/include/v8-object.h +775 -0
- package/src-native/ios/Headers/include/v8-persistent-handle.h +590 -0
- package/src-native/ios/Headers/include/v8-platform.h +1092 -0
- package/src-native/ios/Headers/include/v8-primitive-object.h +118 -0
- package/src-native/ios/Headers/include/v8-primitive.h +866 -0
- package/src-native/ios/Headers/include/v8-profiler.h +1198 -0
- package/src-native/ios/Headers/include/v8-promise.h +174 -0
- package/src-native/ios/Headers/include/v8-proxy.h +50 -0
- package/src-native/ios/Headers/include/v8-regexp.h +105 -0
- package/src-native/ios/Headers/include/v8-script.h +748 -0
- package/src-native/ios/Headers/include/v8-snapshot.h +196 -0
- package/src-native/ios/Headers/include/v8-statistics.h +217 -0
- package/src-native/ios/Headers/include/v8-template.h +1079 -0
- package/src-native/ios/Headers/include/v8-traced-handle.h +420 -0
- package/src-native/ios/Headers/include/v8-typed-array.h +282 -0
- package/src-native/ios/Headers/include/v8-unwinder-state.h +31 -0
- package/src-native/ios/Headers/include/v8-unwinder.h +132 -0
- package/src-native/ios/Headers/include/v8-util.h +658 -0
- package/src-native/ios/Headers/include/v8-value-serializer-version.h +24 -0
- package/src-native/ios/Headers/include/v8-value-serializer.h +279 -0
- package/src-native/ios/Headers/include/v8-value.h +526 -0
- package/src-native/ios/Headers/include/v8-version-string.h +38 -0
- package/src-native/ios/Headers/include/v8-version.h +20 -0
- package/src-native/ios/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/src-native/ios/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/src-native/ios/Headers/include/v8-wasm.h +257 -0
- package/src-native/ios/Headers/include/v8-weak-callback-info.h +86 -0
- package/src-native/ios/Headers/include/v8.h +88 -0
- package/src-native/ios/Headers/include/v8config.h +605 -0
- package/src-native/ios/Headers/inspector/InspectorServer.h +20 -0
- package/src-native/ios/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/src-native/ios/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/src-native/ios/Headers/inspector/base64.h +9 -0
- package/src-native/ios/Headers/inspector/src/base/address-region.h +95 -0
- package/src-native/ios/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/src-native/ios/Headers/inspector/src/base/atomicops.h +332 -0
- package/src-native/ios/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/src-native/ios/Headers/inspector/src/base/base-export.h +31 -0
- package/src-native/ios/Headers/inspector/src/base/bits.h +343 -0
- package/src-native/ios/Headers/inspector/src/base/build_config.h +234 -0
- package/src-native/ios/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/src-native/ios/Headers/inspector/src/base/export-template.h +163 -0
- package/src-native/ios/Headers/inspector/src/base/flags.h +130 -0
- package/src-native/ios/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/src-native/ios/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/src-native/ios/Headers/inspector/src/base/logging.h +417 -0
- package/src-native/ios/Headers/inspector/src/base/macros.h +423 -0
- package/src-native/ios/Headers/inspector/src/base/memory.h +89 -0
- package/src-native/ios/Headers/inspector/src/base/once.h +108 -0
- package/src-native/ios/Headers/inspector/src/base/optional.h +882 -0
- package/src-native/ios/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/src-native/ios/Headers/inspector/src/base/platform/platform.h +476 -0
- package/src-native/ios/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/src-native/ios/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/src-native/ios/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/src-native/ios/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/src-native/ios/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/src-native/ios/Headers/inspector/src/base/template-utils.h +113 -0
- package/src-native/ios/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/src-native/ios/Headers/inspector/src/common/checks.h +38 -0
- package/src-native/ios/Headers/inspector/src/common/globals.h +1842 -0
- package/src-native/ios/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/src-native/ios/Headers/inspector/src/debug/interface-types.h +175 -0
- package/src-native/ios/Headers/inspector/src/init/v8.h +52 -0
- package/src-native/ios/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/src-native/ios/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/src-native/ios/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/src-native/ios/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/src-native/ios/Headers/inspector/src/inspector/search-util.h +26 -0
- package/src-native/ios/Headers/inspector/src/inspector/string-16.h +180 -0
- package/src-native/ios/Headers/inspector/src/inspector/string-util.h +128 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/src-native/ios/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/src-native/ios/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/src-native/ios/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/src-native/ios/Headers/inspector/src/numbers/conversions.h +183 -0
- package/src-native/ios/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/src-native/ios/Headers/inspector/src/utils/allocation.h +367 -0
- package/src-native/ios/Headers/inspector/src/utils/vector.h +324 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/src-native/ios/Headers/inspector/utils.h +32 -0
- package/src-native/ios/Headers/inspector/v8-inspector-platform.h +44 -0
- package/src-native/ios/Headers/runtime/ArgConverter.h +61 -0
- package/src-native/ios/Headers/runtime/ArrayAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/Caches.h +98 -0
- package/src-native/ios/Headers/runtime/ClassBuilder.h +61 -0
- package/src-native/ios/Headers/runtime/Common.h +9 -0
- package/src-native/ios/Headers/runtime/ConcurrentMap.h +55 -0
- package/src-native/ios/Headers/runtime/ConcurrentQueue.h +28 -0
- package/src-native/ios/Headers/runtime/Console.h +27 -0
- package/src-native/ios/Headers/runtime/Constants.h +15 -0
- package/src-native/ios/Headers/runtime/DataWrapper.h +671 -0
- package/src-native/ios/Headers/runtime/DictionaryAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/ExtVector.h +21 -0
- package/src-native/ios/Headers/runtime/FFICall.h +105 -0
- package/src-native/ios/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/FunctionReference.h +18 -0
- package/src-native/ios/Headers/runtime/Helpers.h +84 -0
- package/src-native/ios/Headers/runtime/InlineFunctions.h +16 -0
- package/src-native/ios/Headers/runtime/Interop.h +202 -0
- package/src-native/ios/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/src-native/ios/Headers/runtime/Metadata.h +981 -0
- package/src-native/ios/Headers/runtime/MetadataBuilder.h +72 -0
- package/src-native/ios/Headers/runtime/MetadataInlines.h +157 -0
- package/src-native/ios/Headers/runtime/ModuleInternal.h +59 -0
- package/src-native/ios/Headers/runtime/NSDataAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/NativeScriptException.h +27 -0
- package/src-native/ios/Headers/runtime/ObjectManager.h +31 -0
- package/src-native/ios/Headers/runtime/OneByteStringResource.h +21 -0
- package/src-native/ios/Headers/runtime/Pointer.h +26 -0
- package/src-native/ios/Headers/runtime/PromiseProxy.h +15 -0
- package/src-native/ios/Headers/runtime/Reference.h +38 -0
- package/src-native/ios/Headers/runtime/Runtime.h +67 -0
- package/src-native/ios/Headers/runtime/RuntimeConfig.h +17 -0
- package/src-native/ios/Headers/runtime/SetTimeout.h +34 -0
- package/src-native/ios/Headers/runtime/SimpleAllocator.h +23 -0
- package/src-native/ios/Headers/runtime/StringHasher.h +315 -0
- package/src-native/ios/Headers/runtime/SymbolIterator.h +18 -0
- package/src-native/ios/Headers/runtime/SymbolLoader.h +27 -0
- package/src-native/ios/Headers/runtime/TNSDerivedClass.h +8 -0
- package/src-native/ios/Headers/runtime/TSHelpers.h +15 -0
- package/src-native/ios/Headers/runtime/Tasks.h +19 -0
- package/src-native/ios/Headers/runtime/UnmanagedType.h +21 -0
- package/src-native/ios/Headers/runtime/WeakRef.h +15 -0
- package/src-native/ios/Headers/runtime/Worker.h +26 -0
- package/src-native/ios/Headers/runtime/robin_hood.h +2184 -0
- package/src-native/ios/NativeScript.podspec +55 -0
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -5
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -51
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6119
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2854
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1954
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5879
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4554
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
|
@@ -47,7 +47,7 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
|
|
|
47
47
|
// todo
|
|
48
48
|
//direction = 1;
|
|
49
49
|
}
|
|
50
|
-
this._context =
|
|
50
|
+
this._context = global.CanvasModule.createWebGLContext(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
53
|
this._context = context;
|
|
@@ -57,412 +57,238 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
|
|
|
57
57
|
return this._context;
|
|
58
58
|
}
|
|
59
59
|
get drawingBufferHeight() {
|
|
60
|
+
if (global.isAndroid) {
|
|
61
|
+
return this._canvas?.drawingBufferHeight ?? 0;
|
|
62
|
+
}
|
|
60
63
|
return this.native.drawingBufferHeight;
|
|
61
64
|
}
|
|
62
65
|
get drawingBufferWidth() {
|
|
66
|
+
if (global.isAndroid) {
|
|
67
|
+
return this._canvas?.drawingBufferWidth ?? 0;
|
|
68
|
+
}
|
|
63
69
|
return this.native.drawingBufferWidth;
|
|
64
70
|
}
|
|
65
71
|
__toDataURL() {
|
|
66
|
-
|
|
67
|
-
return __toDataURL(arguments[0], arguments[1]);
|
|
72
|
+
return this.native.__toDataURL(arguments[0], arguments[1]);
|
|
68
73
|
}
|
|
69
74
|
activeTexture(texture) {
|
|
70
|
-
this.
|
|
71
|
-
this._checkArgs('activeTexture', arguments);
|
|
72
|
-
const activeTexture = this._getMethod('activeTexture');
|
|
73
|
-
activeTexture(texture);
|
|
75
|
+
this.native.activeTexture(texture);
|
|
74
76
|
}
|
|
75
77
|
attachShader(program, shader) {
|
|
76
|
-
this._glCheckError('attachShader');
|
|
77
|
-
this._checkArgs('attachShader', arguments);
|
|
78
78
|
const value = program.native;
|
|
79
79
|
const value2 = shader.native;
|
|
80
|
-
|
|
81
|
-
attachShader(value, value2);
|
|
80
|
+
this.native.attachShader(value, value2);
|
|
82
81
|
}
|
|
83
82
|
bindAttribLocation(program, index, name) {
|
|
84
|
-
this._glCheckError('bindAttribLocation');
|
|
85
|
-
this._checkArgs('bindAttribLocation', arguments);
|
|
86
|
-
const bindAttribLocation = this._getMethod('bindAttribLocation');
|
|
87
83
|
const value = program.native;
|
|
88
|
-
bindAttribLocation(value, index, name);
|
|
84
|
+
this.native.bindAttribLocation(value, index, name);
|
|
89
85
|
}
|
|
90
86
|
bindBuffer(target, buffer) {
|
|
91
|
-
this._glCheckError('bindBuffer');
|
|
92
|
-
this._checkArgs('bindBuffer', arguments);
|
|
93
87
|
const value = buffer ? buffer.native : null;
|
|
94
|
-
|
|
95
|
-
bindBuffer(target, value);
|
|
88
|
+
this.native.bindBuffer(target, value);
|
|
96
89
|
}
|
|
97
90
|
bindFramebuffer(target, framebuffer) {
|
|
98
|
-
this._glCheckError('bindFramebuffer');
|
|
99
|
-
this._checkArgs('bindFramebuffer', arguments);
|
|
100
91
|
const value = framebuffer ? framebuffer.native : null;
|
|
101
|
-
|
|
102
|
-
bindFramebuffer(target, value);
|
|
92
|
+
this.native.bindFramebuffer(target, value);
|
|
103
93
|
}
|
|
104
94
|
bindRenderbuffer(target, renderbuffer) {
|
|
105
|
-
this._glCheckError('bindRenderbuffer');
|
|
106
|
-
this._checkArgs('bindRenderbuffer', arguments);
|
|
107
95
|
const value = renderbuffer ? renderbuffer.native : null;
|
|
108
|
-
|
|
109
|
-
bindRenderbuffer(target, value);
|
|
96
|
+
this.native.bindRenderbuffer(target, value);
|
|
110
97
|
}
|
|
111
98
|
bindTexture(target, texture) {
|
|
112
|
-
this._glCheckError('bindTexture');
|
|
113
|
-
this._checkArgs('bindTexture', arguments);
|
|
114
99
|
const value = texture ? texture.native : null;
|
|
115
|
-
|
|
116
|
-
bindTexture(target, value);
|
|
100
|
+
this.native.bindTexture(target, value);
|
|
117
101
|
}
|
|
118
102
|
blendColor(red, green, blue, alpha) {
|
|
119
|
-
this.
|
|
120
|
-
this._checkArgs('blendColor', arguments);
|
|
121
|
-
const blendColor = this._getMethod('blendColor');
|
|
122
|
-
blendColor(red, green, blue, alpha);
|
|
103
|
+
this.native.blendColor(red, green, blue, alpha);
|
|
123
104
|
}
|
|
124
105
|
blendEquationSeparate(modeRGB, modeAlpha) {
|
|
125
|
-
this.
|
|
126
|
-
this._checkArgs('blendEquationSeparate', arguments);
|
|
127
|
-
const blendEquationSeparate = this._getMethod('blendEquationSeparate');
|
|
128
|
-
blendEquationSeparate(modeRGB, modeAlpha);
|
|
106
|
+
this.native.blendEquationSeparate(modeRGB, modeAlpha);
|
|
129
107
|
}
|
|
130
108
|
blendEquation(mode) {
|
|
131
|
-
this.
|
|
132
|
-
this._checkArgs('blendEquation', arguments);
|
|
133
|
-
const blendEquation = this._getMethod('blendEquation');
|
|
134
|
-
blendEquation(mode);
|
|
109
|
+
this.native.blendEquation(mode);
|
|
135
110
|
}
|
|
136
111
|
blendFuncSeparate(srcRGB = this.ONE, dstRGB = this.ZERO, srcAlpha = this.ONE, dstAlpha = this.ZERO) {
|
|
137
|
-
this.
|
|
138
|
-
this._checkArgs('blendFuncSeparate', arguments);
|
|
139
|
-
const blendFuncSeparate = this._getMethod('blendFuncSeparate');
|
|
140
|
-
blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
|
112
|
+
this.native.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
|
141
113
|
}
|
|
142
114
|
blendFunc(sfactor = this.ONE, dfactor = this.ZERO) {
|
|
143
|
-
this.
|
|
144
|
-
this._checkArgs('blendFunc', arguments);
|
|
145
|
-
const blendFunc = this._getMethod('blendFunc');
|
|
146
|
-
blendFunc(sfactor, dfactor);
|
|
115
|
+
this.native.blendFunc(sfactor, dfactor);
|
|
147
116
|
}
|
|
148
117
|
bufferData(target, srcData, usage) {
|
|
149
|
-
this.
|
|
150
|
-
this._checkArgs('bufferData', arguments);
|
|
151
|
-
const bufferData = this._getMethod('bufferData');
|
|
152
|
-
bufferData(target, srcData, usage);
|
|
118
|
+
this.native.bufferData(target, srcData, usage);
|
|
153
119
|
}
|
|
154
120
|
bufferSubData(target, offset, srcData) {
|
|
155
|
-
this.
|
|
156
|
-
this._checkArgs('bufferSubData', arguments);
|
|
157
|
-
const bufferSubData = this._getMethod('bufferSubData');
|
|
158
|
-
bufferSubData(target, offset, srcData);
|
|
121
|
+
this.native.bufferSubData(target, offset, srcData);
|
|
159
122
|
}
|
|
160
123
|
checkFramebufferStatus(target) {
|
|
161
|
-
this.
|
|
162
|
-
this._checkArgs('checkFramebufferStatus', arguments);
|
|
163
|
-
const checkFramebufferStatus = this._getMethod('checkFramebufferStatus');
|
|
164
|
-
return checkFramebufferStatus(target);
|
|
124
|
+
return this.native.checkFramebufferStatus(target);
|
|
165
125
|
}
|
|
166
126
|
clearColor(red, green, blue, alpha) {
|
|
167
|
-
this.
|
|
168
|
-
this._checkArgs('clearColor', arguments);
|
|
169
|
-
const clearColor = this._getMethod('clearColor');
|
|
170
|
-
clearColor(red, green, blue, alpha);
|
|
127
|
+
this.native.clearColor(red, green, blue, alpha);
|
|
171
128
|
}
|
|
172
129
|
clearDepth(depth) {
|
|
173
|
-
this.
|
|
174
|
-
this._checkArgs('clearDepth', arguments);
|
|
175
|
-
const clearDepth = this._getMethod('clearDepth');
|
|
176
|
-
clearDepth(depth);
|
|
130
|
+
this.native.clearDepth(depth);
|
|
177
131
|
}
|
|
178
132
|
clearStencil(stencil) {
|
|
179
|
-
this.
|
|
180
|
-
this._checkArgs('clearStencil', arguments);
|
|
181
|
-
const clearStencil = this._getMethod('clearStencil');
|
|
182
|
-
clearStencil(stencil);
|
|
133
|
+
this.native.clearStencil(stencil);
|
|
183
134
|
}
|
|
184
135
|
clear(mask) {
|
|
185
|
-
this.
|
|
186
|
-
this._checkArgs('clear', arguments);
|
|
187
|
-
const clear = this._getMethod('clear');
|
|
188
|
-
clear(mask);
|
|
136
|
+
this.native.clear(mask);
|
|
189
137
|
}
|
|
190
138
|
colorMask(red, green, blue, alpha) {
|
|
191
|
-
this.
|
|
192
|
-
this._checkArgs('colorMask', arguments);
|
|
193
|
-
const colorMask = this._getMethod('colorMask');
|
|
194
|
-
colorMask(red, green, blue, alpha);
|
|
139
|
+
this.native.colorMask(red, green, blue, alpha);
|
|
195
140
|
}
|
|
196
141
|
commit() {
|
|
197
142
|
// NOOP
|
|
198
|
-
|
|
199
|
-
commit();
|
|
143
|
+
this.native.commit();
|
|
200
144
|
}
|
|
201
145
|
compileShader(shader) {
|
|
202
|
-
this._glCheckError('compileShader');
|
|
203
|
-
this._checkArgs('compileShader', arguments);
|
|
204
|
-
const compileShader = this._getMethod('compileShader');
|
|
205
146
|
const value = shader.native;
|
|
206
|
-
compileShader(value);
|
|
147
|
+
this.native.compileShader(value);
|
|
207
148
|
}
|
|
208
149
|
compressedTexImage2D(target, level, internalformat, width, height, border, pixels) {
|
|
209
|
-
this.
|
|
210
|
-
this._checkArgs('compressedTexImage2D', arguments);
|
|
211
|
-
const compressedTexImage2D = this._getMethod('compressedTexImage2D');
|
|
212
|
-
compressedTexImage2D(target, level, internalformat, width, height, border, pixels);
|
|
150
|
+
this.native.compressedTexImage2D(target, level, internalformat, width, height, border, pixels);
|
|
213
151
|
}
|
|
214
152
|
compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, pixels) {
|
|
215
|
-
this.
|
|
216
|
-
this._checkArgs('compressedTexSubImage2D', arguments);
|
|
217
|
-
const compressedTexSubImage2D = this._getMethod('compressedTexSubImage2D');
|
|
218
|
-
compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, pixels);
|
|
153
|
+
this.native.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, pixels);
|
|
219
154
|
}
|
|
220
155
|
copyTexImage2D(target, level, internalformat, x, y, width, height, border) {
|
|
221
|
-
this.
|
|
222
|
-
this._checkArgs('copyTexImage2D', arguments);
|
|
223
|
-
const copyTexImage2D = this._getMethod('copyTexImage2D');
|
|
224
|
-
copyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
|
156
|
+
this.native.copyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
|
225
157
|
}
|
|
226
158
|
copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height) {
|
|
227
|
-
this.
|
|
228
|
-
this._checkArgs('copyTexSubImage2D', arguments);
|
|
229
|
-
const copyTexSubImage2D = this._getMethod('copyTexSubImage2D');
|
|
230
|
-
copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
|
159
|
+
this.native.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
|
231
160
|
}
|
|
232
161
|
createBuffer() {
|
|
233
|
-
this.
|
|
234
|
-
this._checkArgs('createBuffer', arguments);
|
|
235
|
-
const createBuffer = this._getMethod('createBuffer');
|
|
236
|
-
const id = createBuffer();
|
|
162
|
+
const id = this.native.createBuffer();
|
|
237
163
|
return new WebGLBuffer(id);
|
|
238
164
|
}
|
|
239
165
|
createFramebuffer() {
|
|
240
|
-
this.
|
|
241
|
-
this._checkArgs('createFramebuffer', arguments);
|
|
242
|
-
const createFramebuffer = this._getMethod('createFramebuffer');
|
|
243
|
-
return new WebGLFramebuffer(createFramebuffer());
|
|
166
|
+
return new WebGLFramebuffer(this.native.createFramebuffer());
|
|
244
167
|
}
|
|
245
168
|
createProgram() {
|
|
246
|
-
this.
|
|
247
|
-
this._checkArgs('createProgram', arguments);
|
|
248
|
-
const createProgram = this._getMethod('createProgram');
|
|
249
|
-
return new WebGLProgram(createProgram());
|
|
169
|
+
return new WebGLProgram(this.native.createProgram());
|
|
250
170
|
}
|
|
251
171
|
createRenderbuffer() {
|
|
252
|
-
this.
|
|
253
|
-
this._checkArgs('createRenderbuffer', arguments);
|
|
254
|
-
const createRenderbuffer = this._getMethod('createRenderbuffer');
|
|
255
|
-
return new WebGLRenderbuffer(createRenderbuffer());
|
|
172
|
+
return new WebGLRenderbuffer(this.native.createRenderbuffer());
|
|
256
173
|
}
|
|
257
174
|
createShader(type) {
|
|
258
|
-
this.
|
|
259
|
-
this._checkArgs('createShader', arguments);
|
|
260
|
-
const createShader = this._getMethod('createShader');
|
|
261
|
-
return new WebGLShader(createShader(type));
|
|
175
|
+
return new WebGLShader(this.native.createShader(type));
|
|
262
176
|
}
|
|
263
177
|
createTexture() {
|
|
264
|
-
this.
|
|
265
|
-
this._checkArgs('createTexture', arguments);
|
|
266
|
-
const createTexture = this._getMethod('createTexture');
|
|
267
|
-
return new WebGLTexture(createTexture());
|
|
178
|
+
return new WebGLTexture(this.native.createTexture());
|
|
268
179
|
}
|
|
269
180
|
cullFace(mode) {
|
|
270
|
-
this.
|
|
271
|
-
this._checkArgs('cullFace', arguments);
|
|
272
|
-
const cullFace = this._getMethod('cullFace');
|
|
273
|
-
cullFace(mode);
|
|
181
|
+
this.native.cullFace(mode);
|
|
274
182
|
}
|
|
275
183
|
deleteBuffer(buffer) {
|
|
276
|
-
this._glCheckError('deleteBuffer');
|
|
277
|
-
this._checkArgs('deleteBuffer', arguments);
|
|
278
184
|
const value = buffer.native;
|
|
279
|
-
|
|
280
|
-
deleteBuffer(value);
|
|
185
|
+
this.native.deleteBuffer(value);
|
|
281
186
|
}
|
|
282
187
|
deleteFramebuffer(frameBuffer) {
|
|
283
|
-
this._glCheckError('deleteFramebuffer');
|
|
284
|
-
this._checkArgs('deleteFramebuffer', arguments);
|
|
285
188
|
const value = frameBuffer.native;
|
|
286
|
-
|
|
287
|
-
deleteFramebuffer(value);
|
|
189
|
+
this.native.deleteFramebuffer(value);
|
|
288
190
|
}
|
|
289
191
|
deleteProgram(program) {
|
|
290
|
-
this._glCheckError('deleteProgram');
|
|
291
|
-
this._checkArgs('deleteProgram', arguments);
|
|
292
192
|
const value = program.native;
|
|
293
|
-
|
|
294
|
-
deleteProgram(value);
|
|
193
|
+
this.native.deleteProgram(value);
|
|
295
194
|
}
|
|
296
195
|
deleteRenderbuffer(renderBuffer) {
|
|
297
|
-
this._glCheckError('deleteRenderbuffer');
|
|
298
|
-
this._checkArgs('deleteRenderbuffer', arguments);
|
|
299
196
|
const value = renderBuffer.native;
|
|
300
|
-
|
|
301
|
-
deleteRenderbuffer(value);
|
|
197
|
+
this.native.deleteRenderbuffer(value);
|
|
302
198
|
}
|
|
303
199
|
deleteShader(shader) {
|
|
304
|
-
this.
|
|
305
|
-
this._checkArgs('deleteShader', arguments);
|
|
306
|
-
const deleteShader = this._getMethod('deleteShader');
|
|
307
|
-
deleteShader(shader.native);
|
|
200
|
+
this.native.deleteShader(shader.native);
|
|
308
201
|
}
|
|
309
202
|
deleteTexture(texture) {
|
|
310
|
-
this._glCheckError('deleteTexture');
|
|
311
|
-
this._checkArgs('deleteTexture', arguments);
|
|
312
203
|
const value = texture.native;
|
|
313
|
-
|
|
314
|
-
deleteTexture(value);
|
|
204
|
+
this.native.deleteTexture(value);
|
|
315
205
|
}
|
|
316
206
|
depthFunc(func) {
|
|
317
|
-
this.
|
|
318
|
-
this._checkArgs('depthFunc', arguments);
|
|
319
|
-
const depthFunc = this._getMethod('depthFunc');
|
|
320
|
-
depthFunc(func);
|
|
207
|
+
this.native.depthFunc(func);
|
|
321
208
|
}
|
|
322
209
|
depthMask(flag) {
|
|
323
|
-
this.
|
|
324
|
-
this._checkArgs('depthMask', arguments);
|
|
325
|
-
const depthMask = this._getMethod('depthMask');
|
|
326
|
-
depthMask(flag);
|
|
210
|
+
this.native.depthMask(flag);
|
|
327
211
|
}
|
|
328
212
|
depthRange(zNear, zFar) {
|
|
329
|
-
this.
|
|
330
|
-
this._checkArgs('depthRange', arguments);
|
|
331
|
-
const depthRange = this._getMethod('depthRange');
|
|
332
|
-
depthRange(zNear, zFar);
|
|
213
|
+
this.native.depthRange(zNear, zFar);
|
|
333
214
|
}
|
|
334
215
|
detachShader(program, shader) {
|
|
335
216
|
this._glCheckError('detachShader');
|
|
336
217
|
this._checkArgs('detachShader', arguments);
|
|
337
218
|
const value = program.native;
|
|
338
219
|
const value2 = shader.native;
|
|
339
|
-
|
|
340
|
-
detachShader(value, value2);
|
|
220
|
+
this.native.detachShader(value, value2);
|
|
341
221
|
}
|
|
342
222
|
disableVertexAttribArray(index) {
|
|
343
|
-
this.
|
|
344
|
-
this._checkArgs('disableVertexAttribArray', arguments);
|
|
345
|
-
const disableVertexAttribArray = this._getMethod('disableVertexAttribArray');
|
|
346
|
-
disableVertexAttribArray(index);
|
|
223
|
+
this.native.disableVertexAttribArray(index);
|
|
347
224
|
}
|
|
348
225
|
disable(cap) {
|
|
349
|
-
this.
|
|
350
|
-
this._checkArgs('disable', arguments);
|
|
351
|
-
const disable = this._getMethod('disable');
|
|
352
|
-
disable(cap);
|
|
226
|
+
this.native.disable(cap);
|
|
353
227
|
}
|
|
354
228
|
drawArrays(mode, first, count) {
|
|
355
|
-
this.
|
|
356
|
-
this._checkArgs('drawArrays', arguments);
|
|
357
|
-
const drawArrays = this._getMethod('drawArrays');
|
|
358
|
-
drawArrays(mode, first, count);
|
|
229
|
+
this.native.drawArrays(mode, first, count);
|
|
359
230
|
}
|
|
360
231
|
drawElements(mode, count, type, offset) {
|
|
361
|
-
this.
|
|
362
|
-
this._checkArgs('drawElements', arguments);
|
|
363
|
-
const drawElements = this._getMethod('drawElements');
|
|
364
|
-
drawElements(mode, count, type, offset);
|
|
232
|
+
this.native.drawElements(mode, count, type, offset);
|
|
365
233
|
}
|
|
366
234
|
enableVertexAttribArray(index) {
|
|
367
|
-
this.
|
|
368
|
-
this._checkArgs('enableVertexAttribArray', arguments);
|
|
369
|
-
const enableVertexAttribArray = this._getMethod('enableVertexAttribArray');
|
|
370
|
-
enableVertexAttribArray(index);
|
|
235
|
+
this.native.enableVertexAttribArray(index);
|
|
371
236
|
}
|
|
372
237
|
enable(cap) {
|
|
373
|
-
this.
|
|
374
|
-
this._checkArgs('enable', arguments);
|
|
375
|
-
const enable = this._getMethod('enable');
|
|
376
|
-
enable(cap);
|
|
238
|
+
this.native.enable(cap);
|
|
377
239
|
}
|
|
378
240
|
finish() {
|
|
379
|
-
this.
|
|
380
|
-
const finish = this._getMethod('finish');
|
|
381
|
-
finish();
|
|
241
|
+
this.native.finish();
|
|
382
242
|
}
|
|
383
243
|
flush() {
|
|
384
|
-
this.
|
|
385
|
-
const flush = this._getMethod('flush');
|
|
386
|
-
flush();
|
|
244
|
+
this.native.flush();
|
|
387
245
|
}
|
|
388
246
|
framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
|
|
389
|
-
this._glCheckError('framebufferRenderbuffer');
|
|
390
|
-
this._checkArgs('framebufferRenderbuffer', arguments);
|
|
391
247
|
const value = renderbuffer.native;
|
|
392
|
-
|
|
393
|
-
framebufferRenderbuffer(target, attachment, renderbuffertarget, value);
|
|
248
|
+
this.native.framebufferRenderbuffer(target, attachment, renderbuffertarget, value);
|
|
394
249
|
}
|
|
395
250
|
framebufferTexture2D(target, attachment, textarget, texture, level) {
|
|
396
|
-
this._glCheckError('framebufferTexture2D');
|
|
397
|
-
this._checkArgs('framebufferTexture2D', arguments);
|
|
398
251
|
const value = texture.native;
|
|
399
|
-
|
|
400
|
-
framebufferTexture2D(target, attachment, textarget, value, level);
|
|
252
|
+
this.native.framebufferTexture2D(target, attachment, textarget, value, level);
|
|
401
253
|
}
|
|
402
254
|
frontFace(mode) {
|
|
403
|
-
this.
|
|
404
|
-
this._glCheckError('frontFace');
|
|
405
|
-
const frontFace = this._getMethod('frontFace');
|
|
406
|
-
frontFace(mode);
|
|
255
|
+
this.native.frontFace(mode);
|
|
407
256
|
}
|
|
408
257
|
generateMipmap(target) {
|
|
409
|
-
this.
|
|
410
|
-
this._glCheckError('generateMipmap');
|
|
411
|
-
const generateMipmap = this._getMethod('generateMipmap');
|
|
412
|
-
generateMipmap(target);
|
|
258
|
+
this.native.generateMipmap(target);
|
|
413
259
|
}
|
|
414
260
|
getActiveAttrib(program, index) {
|
|
415
|
-
this._glCheckError('getActiveAttrib');
|
|
416
|
-
this._checkArgs('getActiveAttrib', arguments);
|
|
417
261
|
const value = program.native;
|
|
418
|
-
const
|
|
419
|
-
const attrib = getActiveAttrib(value, index);
|
|
262
|
+
const attrib = this.native.getActiveAttrib(value, index);
|
|
420
263
|
return new WebGLActiveInfo(attrib);
|
|
421
264
|
}
|
|
422
265
|
getActiveUniform(program, index) {
|
|
423
|
-
this._glCheckError('getActiveUniform');
|
|
424
|
-
this._checkArgs('getActiveUniform', arguments);
|
|
425
266
|
const value = program.native;
|
|
426
|
-
const
|
|
427
|
-
const uniform = getActiveUniform(value, index);
|
|
267
|
+
const uniform = this.native.getActiveUniform(value, index);
|
|
428
268
|
return new WebGLActiveInfo(uniform);
|
|
429
269
|
}
|
|
430
270
|
getAttachedShaders(program) {
|
|
431
|
-
this._glCheckError('getAttachedShaders');
|
|
432
|
-
this._checkArgs('getAttachedShaders', arguments);
|
|
433
|
-
const getAttachedShaders = this._getMethod('getAttachedShaders');
|
|
434
271
|
const value = program.native;
|
|
435
|
-
return getAttachedShaders(value).map((shader) => new WebGLShader(shader));
|
|
272
|
+
return this.native.getAttachedShaders(value).map((shader) => new WebGLShader(shader));
|
|
436
273
|
}
|
|
437
274
|
getAttribLocation(program, name) {
|
|
438
|
-
this._glCheckError('getAttribLocation');
|
|
439
|
-
this._checkArgs('getAttribLocation', arguments);
|
|
440
|
-
const getAttribLocation = this._getMethod('getAttribLocation');
|
|
441
275
|
const value = program.native;
|
|
442
|
-
return getAttribLocation(value, name);
|
|
276
|
+
return this.native.getAttribLocation(value, name);
|
|
443
277
|
}
|
|
444
278
|
getBufferParameter(target, pname) {
|
|
445
|
-
this.
|
|
446
|
-
this._checkArgs('getBufferParameter', arguments);
|
|
447
|
-
const getBufferParameter = this._getMethod('getBufferParameter');
|
|
448
|
-
return getBufferParameter(target, pname);
|
|
279
|
+
return this.native.getBufferParameter(target, pname);
|
|
449
280
|
}
|
|
450
281
|
getContextAttributes() {
|
|
451
|
-
|
|
452
|
-
return getContextAttributes();
|
|
282
|
+
return this.native.getContextAttributes();
|
|
453
283
|
}
|
|
454
284
|
getError() {
|
|
455
|
-
|
|
456
|
-
return getError();
|
|
285
|
+
return this.native.getError();
|
|
457
286
|
}
|
|
458
287
|
getExtension(name) {
|
|
459
|
-
this._glCheckError('getExtension');
|
|
460
|
-
this._checkArgs('getExtension', arguments);
|
|
461
288
|
if (name === 'EXT_disjoint_timer_query_webgl2') {
|
|
462
289
|
return null;
|
|
463
290
|
}
|
|
464
|
-
const
|
|
465
|
-
const ext = getExtension(name);
|
|
291
|
+
const ext = this.native.getExtension(name);
|
|
466
292
|
if (ext) {
|
|
467
293
|
const ext_name = ext.ext_name;
|
|
468
294
|
switch (ext_name) {
|
|
@@ -517,10 +343,7 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
|
|
|
517
343
|
return null;
|
|
518
344
|
}
|
|
519
345
|
getFramebufferAttachmentParameter(target, attachment, pname) {
|
|
520
|
-
this.
|
|
521
|
-
this._checkArgs('getFramebufferAttachmentParameter', arguments);
|
|
522
|
-
const getFramebufferAttachmentParameter = this._getMethod('getFramebufferAttachmentParameter');
|
|
523
|
-
const param = getFramebufferAttachmentParameter(target, attachment, pname);
|
|
346
|
+
const param = this.native.getFramebufferAttachmentParameter(target, attachment, pname);
|
|
524
347
|
if (typeof param === 'object') {
|
|
525
348
|
if (param.isRenderbuffer) {
|
|
526
349
|
return new WebGLRenderbuffer(param);
|
|
@@ -585,291 +408,176 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
|
|
|
585
408
|
}
|
|
586
409
|
}
|
|
587
410
|
getParameter(pname) {
|
|
588
|
-
this.
|
|
589
|
-
this._checkArgs('getParameter', arguments);
|
|
590
|
-
const getParameter = this._getMethod('getParameter');
|
|
591
|
-
const value = getParameter(pname);
|
|
411
|
+
const value = this.native.getParameter(pname);
|
|
592
412
|
return this._handleGetParameter(pname, value);
|
|
593
413
|
}
|
|
594
414
|
getProgramInfoLog(program) {
|
|
595
|
-
this._glCheckError('getProgramInfoLog');
|
|
596
|
-
this._checkArgs('getProgramInfoLog', arguments);
|
|
597
|
-
const getProgramInfoLog = this._getMethod('getProgramInfoLog');
|
|
598
415
|
const value = program.native;
|
|
599
|
-
return getProgramInfoLog(value);
|
|
416
|
+
return this.native.getProgramInfoLog(value);
|
|
600
417
|
}
|
|
601
418
|
getProgramParameter(program, pname) {
|
|
602
|
-
this._glCheckError('getProgramParameter');
|
|
603
|
-
this._checkArgs('getProgramParameter', arguments);
|
|
604
|
-
const getProgramParameter = this._getMethod('getProgramParameter');
|
|
605
419
|
const value = program.native;
|
|
606
|
-
const result = getProgramParameter(value, pname);
|
|
420
|
+
const result = this.native.getProgramParameter(value, pname);
|
|
607
421
|
return result;
|
|
608
422
|
}
|
|
609
423
|
getRenderbufferParameter(target, pname) {
|
|
610
|
-
this.
|
|
611
|
-
this._checkArgs('getRenderbufferParameter', arguments);
|
|
612
|
-
const getRenderbufferParameter = this._getMethod('getRenderbufferParameter');
|
|
613
|
-
return getRenderbufferParameter(target, pname);
|
|
424
|
+
return this.native.getRenderbufferParameter(target, pname);
|
|
614
425
|
}
|
|
615
426
|
getShaderInfoLog(shader) {
|
|
616
|
-
this._glCheckError('getShaderInfoLog');
|
|
617
|
-
this._checkArgs('getShaderInfoLog', arguments);
|
|
618
|
-
const getShaderInfoLog = this._getMethod('getShaderInfoLog');
|
|
619
427
|
const value = shader.native;
|
|
620
|
-
return getShaderInfoLog(value);
|
|
428
|
+
return this.native.getShaderInfoLog(value);
|
|
621
429
|
}
|
|
622
430
|
getShaderParameter(shader, pname) {
|
|
623
|
-
this._glCheckError('getShaderParameter');
|
|
624
|
-
this._checkArgs('getShaderParameter', arguments);
|
|
625
|
-
const getShaderParameter = this._getMethod('getShaderParameter');
|
|
626
431
|
const value = shader.native;
|
|
627
|
-
const result = getShaderParameter(value, pname);
|
|
432
|
+
const result = this.native.getShaderParameter(value, pname);
|
|
628
433
|
return result;
|
|
629
434
|
}
|
|
630
435
|
getShaderPrecisionFormat(shaderType, precisionType) {
|
|
631
|
-
this.
|
|
632
|
-
this._checkArgs('getShaderPrecisionFormat', arguments);
|
|
633
|
-
const getShaderPrecisionFormat = this._getMethod('getShaderPrecisionFormat');
|
|
634
|
-
const precision = getShaderPrecisionFormat(shaderType, precisionType);
|
|
436
|
+
const precision = this.native.getShaderPrecisionFormat(shaderType, precisionType);
|
|
635
437
|
return new WebGLShaderPrecisionFormat(precision);
|
|
636
438
|
}
|
|
637
439
|
getShaderSource(shader) {
|
|
638
|
-
this._glCheckError('getShaderSource');
|
|
639
|
-
this._checkArgs('getShaderSource', arguments);
|
|
640
|
-
const getShaderSource = this._getMethod('getShaderSource');
|
|
641
440
|
const value = shader ? shader.native : 0;
|
|
642
|
-
return getShaderSource(value);
|
|
441
|
+
return this.native.getShaderSource(value);
|
|
643
442
|
}
|
|
644
443
|
getSupportedExtensions() {
|
|
645
|
-
this.
|
|
646
|
-
const getSupportedExtensions = this._getMethod('getSupportedExtensions');
|
|
647
|
-
return getSupportedExtensions();
|
|
444
|
+
return this.native.getSupportedExtensions();
|
|
648
445
|
}
|
|
649
446
|
getTexParameter(target, pname) {
|
|
650
|
-
this.
|
|
651
|
-
this._checkArgs('getTexParameter', arguments);
|
|
652
|
-
const getTexParameter = this._getMethod('getTexParameter');
|
|
653
|
-
return getTexParameter(target, pname);
|
|
447
|
+
return this.native.getTexParameter(target, pname);
|
|
654
448
|
}
|
|
655
449
|
getUniformLocation(program, name) {
|
|
656
|
-
this._glCheckError('getUniformLocation');
|
|
657
|
-
this._checkArgs('getUniformLocation', arguments);
|
|
658
|
-
const getUniformLocation = this._getMethod('getUniformLocation');
|
|
659
450
|
const value = program.native;
|
|
660
|
-
const id = getUniformLocation(value, name);
|
|
451
|
+
const id = this.native.getUniformLocation(value, name);
|
|
661
452
|
if (id === -1) {
|
|
662
453
|
return null;
|
|
663
454
|
}
|
|
664
455
|
return new WebGLUniformLocation(id);
|
|
665
456
|
}
|
|
666
457
|
getUniform(program, location) {
|
|
667
|
-
this._glCheckError('getUniform');
|
|
668
|
-
this._checkArgs('getUniform', arguments);
|
|
669
|
-
const getUniform = this._getMethod('getUniform');
|
|
670
458
|
const value = program.native;
|
|
671
459
|
const value2 = location.native;
|
|
672
|
-
const uniform = getUniform(value, value2);
|
|
460
|
+
const uniform = this.native.getUniform(value, value2);
|
|
673
461
|
if (uniform && uniform.length) {
|
|
674
462
|
return uniform;
|
|
675
463
|
}
|
|
676
464
|
return uniform;
|
|
677
465
|
}
|
|
678
466
|
getVertexAttribOffset(index, pname) {
|
|
679
|
-
this.
|
|
680
|
-
this._checkArgs('getVertexAttribOffset', arguments);
|
|
681
|
-
const getVertexAttribOffset = this._getMethod('getVertexAttribOffset');
|
|
682
|
-
return getVertexAttribOffset(index, pname);
|
|
467
|
+
return this.native.getVertexAttribOffset(index, pname);
|
|
683
468
|
}
|
|
684
469
|
getVertexAttrib(index, pname) {
|
|
685
|
-
this.
|
|
686
|
-
this._checkArgs('getVertexAttrib', arguments);
|
|
687
|
-
const getVertexAttrib = this._getMethod('getVertexAttrib');
|
|
688
|
-
const value = getVertexAttrib(index, pname);
|
|
470
|
+
const value = this.native.getVertexAttrib(index, pname);
|
|
689
471
|
if (pname === this.CURRENT_VERTEX_ATTRIB) {
|
|
690
472
|
return value;
|
|
691
473
|
}
|
|
692
474
|
return value;
|
|
693
475
|
}
|
|
694
476
|
hint(target, mode) {
|
|
695
|
-
this.
|
|
696
|
-
this._checkArgs('hint', arguments);
|
|
697
|
-
const hint = this._getMethod('hint');
|
|
698
|
-
hint(target, mode);
|
|
477
|
+
this.native.hint(target, mode);
|
|
699
478
|
}
|
|
700
479
|
isBuffer(buffer) {
|
|
701
|
-
this._glCheckError('isBuffer');
|
|
702
|
-
this._checkArgs('isBuffer', arguments);
|
|
703
|
-
const isBuffer = this._getMethod('isBuffer');
|
|
704
480
|
const value = buffer.native;
|
|
705
|
-
return isBuffer(value);
|
|
481
|
+
return this.native.isBuffer(value);
|
|
706
482
|
}
|
|
707
483
|
isContextLost() {
|
|
708
|
-
this.
|
|
709
|
-
const isContextLost = this._getMethod('isContextLost');
|
|
710
|
-
return isContextLost();
|
|
484
|
+
return this.native.isContextLost();
|
|
711
485
|
}
|
|
712
486
|
isEnabled(cap) {
|
|
713
|
-
this.
|
|
714
|
-
this._checkArgs('isEnabled', arguments);
|
|
715
|
-
const isEnabled = this._getMethod('isEnabled');
|
|
716
|
-
return isEnabled(cap);
|
|
487
|
+
return this.native.isEnabled(cap);
|
|
717
488
|
}
|
|
718
489
|
isFramebuffer(framebuffer) {
|
|
719
|
-
this._glCheckError('isFramebuffer');
|
|
720
|
-
this._checkArgs('isFramebuffer', arguments);
|
|
721
|
-
const isFramebuffer = this._getMethod('isFramebuffer');
|
|
722
490
|
const value = framebuffer ? framebuffer.native : 0;
|
|
723
|
-
return isFramebuffer(value);
|
|
491
|
+
return this.native.isFramebuffer(value);
|
|
724
492
|
}
|
|
725
493
|
isProgram(program) {
|
|
726
|
-
this._glCheckError('isProgram');
|
|
727
|
-
this._checkArgs('isProgram', arguments);
|
|
728
|
-
const isProgram = this._getMethod('isProgram');
|
|
729
494
|
const value = program.native;
|
|
730
|
-
return isProgram(value);
|
|
495
|
+
return this.native.isProgram(value);
|
|
731
496
|
}
|
|
732
497
|
isRenderbuffer(renderbuffer) {
|
|
733
|
-
this._glCheckError('isRenderbuffer');
|
|
734
|
-
this._checkArgs('isRenderbuffer', arguments);
|
|
735
|
-
const isRenderbuffer = this._getMethod('isRenderbuffer');
|
|
736
498
|
const value = renderbuffer.native;
|
|
737
|
-
return isRenderbuffer(value);
|
|
499
|
+
return this.native.isRenderbuffer(value);
|
|
738
500
|
}
|
|
739
501
|
isShader(shader) {
|
|
740
|
-
this._glCheckError('isShader');
|
|
741
|
-
this._checkArgs('isShader', arguments);
|
|
742
|
-
const isShader = this._getMethod('isShader');
|
|
743
502
|
const value = shader.native;
|
|
744
|
-
return isShader(value);
|
|
503
|
+
return this.native.isShader(value);
|
|
745
504
|
}
|
|
746
505
|
isTexture(texture) {
|
|
747
|
-
this._glCheckError('isTexture');
|
|
748
|
-
this._checkArgs('isTexture', arguments);
|
|
749
|
-
const isTexture = this._getMethod('isTexture');
|
|
750
506
|
const value = texture.native;
|
|
751
|
-
return isTexture(value);
|
|
507
|
+
return this.native.isTexture(value);
|
|
752
508
|
}
|
|
753
509
|
lineWidth(width) {
|
|
754
|
-
this.
|
|
755
|
-
this._checkArgs('lineWidth', arguments);
|
|
756
|
-
const lineWidth = this._getMethod('lineWidth');
|
|
757
|
-
lineWidth(width);
|
|
510
|
+
this.native.lineWidth(width);
|
|
758
511
|
}
|
|
759
512
|
linkProgram(program) {
|
|
760
|
-
this._glCheckError('linkProgram');
|
|
761
|
-
this._checkArgs('linkProgram', arguments);
|
|
762
|
-
const linkProgram = this._getMethod('linkProgram');
|
|
763
513
|
const value = program ? program.native : 0;
|
|
764
|
-
linkProgram(value);
|
|
514
|
+
this.native.linkProgram(value);
|
|
765
515
|
}
|
|
766
516
|
pixelStorei(pname, param) {
|
|
767
|
-
this._glCheckError('pixelStorei');
|
|
768
|
-
this._checkArgs('pixelStorei', arguments);
|
|
769
|
-
const pixelStorei = this._getMethod('pixelStorei');
|
|
770
517
|
if (pname === this.UNPACK_FLIP_Y_WEBGL || pname === this.UNPACK_PREMULTIPLY_ALPHA_WEBGL) {
|
|
771
518
|
if (pname === this.UNPACK_FLIP_Y_WEBGL) {
|
|
772
519
|
this._flipY = param;
|
|
773
520
|
}
|
|
774
|
-
pixelStorei(pname, param);
|
|
521
|
+
this.native.pixelStorei(pname, param);
|
|
775
522
|
}
|
|
776
523
|
else if (pname === this.PACK_ALIGNMENT || pname === this.UNPACK_ALIGNMENT || pname === this.UNPACK_COLORSPACE_CONVERSION_WEBGL) {
|
|
777
524
|
if (pname === this.UNPACK_COLORSPACE_CONVERSION_WEBGL) {
|
|
778
525
|
param = 0x9244;
|
|
779
526
|
}
|
|
780
527
|
else if (pname === this.PACK_ALIGNMENT || pname === this.UNPACK_ALIGNMENT) {
|
|
781
|
-
param =
|
|
528
|
+
//param = 1;
|
|
782
529
|
}
|
|
783
|
-
pixelStorei(pname, param);
|
|
530
|
+
this.native.pixelStorei(pname, param);
|
|
784
531
|
}
|
|
785
532
|
else {
|
|
786
|
-
pixelStorei(pname, param);
|
|
533
|
+
this.native.pixelStorei(pname, param);
|
|
787
534
|
}
|
|
788
535
|
}
|
|
789
536
|
polygonOffset(factor, units) {
|
|
790
|
-
this.
|
|
791
|
-
this._checkArgs('polygonOffset', arguments);
|
|
792
|
-
const polygonOffset = this._getMethod('polygonOffset');
|
|
793
|
-
polygonOffset(factor, units);
|
|
537
|
+
this.native.polygonOffset(factor, units);
|
|
794
538
|
}
|
|
795
539
|
readPixels(x, y, width, height, format, type, pixels) {
|
|
796
|
-
this.
|
|
797
|
-
this._checkArgs('readPixels', arguments);
|
|
798
|
-
const readPixels = this._getMethod('readPixels');
|
|
799
|
-
readPixels(x, y, width, height, format, type, pixels);
|
|
540
|
+
this.native.readPixels(x, y, width, height, format, type, pixels);
|
|
800
541
|
}
|
|
801
542
|
renderbufferStorage(target, internalFormat, width, height) {
|
|
802
|
-
this._glCheckError('renderbufferStorage');
|
|
803
|
-
this._checkArgs('renderbufferStorage', arguments);
|
|
804
|
-
const renderbufferStorage = this._getMethod('renderbufferStorage');
|
|
805
543
|
if (internalFormat === this.DEPTH_STENCIL) {
|
|
806
544
|
// DEPTH24_STENCIL8 = 35056
|
|
807
545
|
// DEPTH24_STENCIL8_OES = 0x88F0
|
|
808
546
|
internalFormat = 0x88f0;
|
|
809
547
|
}
|
|
810
|
-
renderbufferStorage(target, internalFormat, width, height);
|
|
548
|
+
this.native.renderbufferStorage(target, internalFormat, width, height);
|
|
811
549
|
}
|
|
812
550
|
sampleCoverage(value, invert) {
|
|
813
|
-
this.
|
|
814
|
-
this._checkArgs('sampleCoverage', arguments);
|
|
815
|
-
const sampleCoverage = this._getMethod('sampleCoverage');
|
|
816
|
-
sampleCoverage(value, invert);
|
|
551
|
+
this.native.sampleCoverage(value, invert);
|
|
817
552
|
}
|
|
818
553
|
scissor(x, y, width, height) {
|
|
819
|
-
this.
|
|
820
|
-
this._checkArgs('scissor', arguments);
|
|
821
|
-
const scissor = this._getMethod('scissor');
|
|
822
|
-
scissor(x, y, width, height);
|
|
554
|
+
this.native.scissor(x, y, width, height);
|
|
823
555
|
}
|
|
824
556
|
shaderSource(shader, source) {
|
|
825
|
-
this._glCheckError('shaderSource');
|
|
826
|
-
this._checkArgs('shaderSource', arguments);
|
|
827
|
-
const shaderSource = this._getMethod('shaderSource');
|
|
828
557
|
const value = shader ? shader.native : 0;
|
|
829
|
-
shaderSource(value, source);
|
|
558
|
+
this.native.shaderSource(value, source);
|
|
830
559
|
}
|
|
831
560
|
stencilFuncSeparate(face, func, ref, mask) {
|
|
832
|
-
this.
|
|
833
|
-
this._checkArgs('stencilFuncSeparate', arguments);
|
|
834
|
-
const stencilFuncSeparate = this._getMethod('stencilFuncSeparate');
|
|
835
|
-
stencilFuncSeparate(face, func, ref, mask);
|
|
561
|
+
this.native.stencilFuncSeparate(face, func, ref, mask);
|
|
836
562
|
}
|
|
837
563
|
stencilFunc(func, ref, mask) {
|
|
838
|
-
this.
|
|
839
|
-
this._checkArgs('stencilFunc', arguments);
|
|
840
|
-
const stencilFunc = this._getMethod('stencilFunc');
|
|
841
|
-
stencilFunc(func, ref, mask);
|
|
564
|
+
this.native.stencilFunc(func, ref, mask);
|
|
842
565
|
}
|
|
843
566
|
stencilMaskSeparate(face, mask) {
|
|
844
|
-
this.
|
|
845
|
-
this._checkArgs('stencilMaskSeparate', arguments);
|
|
846
|
-
const stencilMaskSeparate = this._getMethod('stencilMaskSeparate');
|
|
847
|
-
stencilMaskSeparate(face, mask);
|
|
567
|
+
this.native.stencilMaskSeparate(face, mask);
|
|
848
568
|
}
|
|
849
569
|
stencilMask(mask) {
|
|
850
|
-
this.
|
|
851
|
-
this._checkArgs('stencilMask', arguments);
|
|
852
|
-
const stencilMask = this._getMethod('stencilMask');
|
|
853
|
-
stencilMask(mask);
|
|
570
|
+
this.native.stencilMask(mask);
|
|
854
571
|
}
|
|
855
572
|
stencilOpSeparate(face, fail, zfail, zpass) {
|
|
856
|
-
this.
|
|
857
|
-
this._checkArgs('stencilOpSeparate', arguments);
|
|
858
|
-
const stencilOpSeparate = this._getMethod('stencilOpSeparate');
|
|
859
|
-
stencilOpSeparate(face, fail, zfail, zpass);
|
|
573
|
+
this.native.stencilOpSeparate(face, fail, zfail, zpass);
|
|
860
574
|
}
|
|
861
575
|
stencilOp(fail, zfail, zpass) {
|
|
862
|
-
this.
|
|
863
|
-
this._checkArgs('stencilOp', arguments);
|
|
864
|
-
const stencilOp = this._getMethod('stencilOp');
|
|
865
|
-
stencilOp(fail, zfail, zpass);
|
|
576
|
+
this.native.stencilOp(fail, zfail, zpass);
|
|
866
577
|
}
|
|
867
578
|
texImage2D(target, level, internalformat, width, height, border, format, type, pixels) {
|
|
868
|
-
this._glCheckError('texImage2D');
|
|
869
|
-
this._checkArgs('texImage2D', arguments);
|
|
870
|
-
const texImage2D = this._getMethod('texImage2D');
|
|
871
579
|
if (arguments.length === 9) {
|
|
872
|
-
texImage2D(target, level, internalformat, width, height, border, format, type
|
|
580
|
+
this.native.texImage2D(target, level, internalformat, width, height, border, format, type ?? internalformat, pixels);
|
|
873
581
|
}
|
|
874
582
|
else if (arguments.length === 6) {
|
|
875
583
|
if (border && typeof border.tagName === 'string' && (border.tagName === 'VID' || border.tagName === 'VIDEO') && border._video && typeof border._video.getCurrentFrame === 'function') {
|
|
@@ -879,298 +587,196 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
|
|
|
879
587
|
border.getCurrentFrame(this.native, this, target, level, internalformat, width, height);
|
|
880
588
|
}
|
|
881
589
|
else if (border instanceof ImageAsset) {
|
|
882
|
-
texImage2D(target, level, internalformat, width, height, border.native);
|
|
590
|
+
this.native.texImage2D(target, level, internalformat, width, height, border.native);
|
|
883
591
|
}
|
|
884
592
|
else if (border instanceof ImageBitmap) {
|
|
885
|
-
texImage2D(target, level, internalformat, width, height, border.native);
|
|
593
|
+
this.native.texImage2D(target, level, internalformat, width, height, border.native);
|
|
886
594
|
}
|
|
887
595
|
else if (global.isAndroid && border instanceof android.graphics.Bitmap) {
|
|
888
596
|
// todo ios
|
|
889
|
-
texImage2D(target, level, internalformat, width, height, border);
|
|
597
|
+
this.native.texImage2D(target, level, internalformat, width, height, border);
|
|
890
598
|
}
|
|
891
599
|
else if (border instanceof ImageSource) {
|
|
892
|
-
texImage2D(target, level, internalformat, width, height, border.android);
|
|
600
|
+
this.native.texImage2D(target, level, internalformat, width, height, border.android);
|
|
893
601
|
}
|
|
894
602
|
else if (border && typeof border.tagName === 'string' && (border.tagName === 'IMG' || border.tagName === 'IMAGE')) {
|
|
895
603
|
if (border._asset instanceof ImageAsset) {
|
|
896
|
-
texImage2D(target, level, internalformat, width, height, border._asset.native);
|
|
604
|
+
this.native.texImage2D(target, level, internalformat, width, height, border._asset.native);
|
|
897
605
|
}
|
|
898
606
|
else if (border._imageSource instanceof ImageSource) {
|
|
899
|
-
texImage2D(target, level, internalformat, width, height, border._imageSource.android);
|
|
607
|
+
this.native.texImage2D(target, level, internalformat, width, height, border._imageSource.android);
|
|
900
608
|
}
|
|
901
609
|
else if (global.isAndroid && border._image instanceof android.graphics.Bitmap) {
|
|
902
610
|
//todo ios
|
|
903
|
-
texImage2D(target, level, internalformat, width, height, border._image);
|
|
611
|
+
this.native.texImage2D(target, level, internalformat, width, height, border._image);
|
|
904
612
|
}
|
|
905
613
|
else if (typeof border.src === 'string') {
|
|
906
|
-
texImage2D(target, level, internalformat, width, height, ImageSource.fromFileSync(border.src).android);
|
|
614
|
+
this.native.texImage2D(target, level, internalformat, width, height, ImageSource.fromFileSync(border.src).android);
|
|
907
615
|
}
|
|
908
616
|
}
|
|
909
617
|
else if (border && typeof border.tagName === 'string' && border.tagName === 'CANVAS' && border._canvas instanceof Canvas) {
|
|
910
|
-
texImage2D(target, level, internalformat, width, height, border._canvas.native);
|
|
618
|
+
this.native.texImage2D(target, level, internalformat, width, height, border._canvas.native);
|
|
911
619
|
}
|
|
912
620
|
}
|
|
913
621
|
}
|
|
914
622
|
texParameterf(target, pname, param) {
|
|
915
|
-
this.
|
|
916
|
-
this._checkArgs('texParameterf', arguments);
|
|
917
|
-
const texParameterf = this._getMethod('texParameterf');
|
|
918
|
-
texParameterf(target, pname, param);
|
|
623
|
+
this.native.texParameterf(target, pname, param);
|
|
919
624
|
}
|
|
920
625
|
texParameteri(target, pname, param) {
|
|
921
|
-
this.
|
|
922
|
-
this._checkArgs('texParameteri', arguments);
|
|
923
|
-
const texParameteri = this._getMethod('texParameteri');
|
|
924
|
-
texParameteri(target, pname, param);
|
|
626
|
+
this.native.texParameteri(target, pname, param);
|
|
925
627
|
}
|
|
926
628
|
texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
|
|
927
|
-
this._glCheckError('texSubImage2D');
|
|
928
|
-
this._checkArgs('texSubImage2D', arguments);
|
|
929
|
-
const texSubImage2D = this._getMethod('texSubImage2D');
|
|
930
629
|
if (arguments.length === 9) {
|
|
931
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
|
|
630
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
|
|
932
631
|
}
|
|
933
632
|
else if (arguments.length === 7) {
|
|
934
633
|
if (global.isAndroid && format instanceof android.graphics.Bitmap) {
|
|
935
634
|
// todo
|
|
936
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format);
|
|
635
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format);
|
|
937
636
|
}
|
|
938
637
|
else if (format instanceof ImageSource) {
|
|
939
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format.android);
|
|
638
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.android);
|
|
940
639
|
}
|
|
941
640
|
else if (format instanceof ImageAsset) {
|
|
942
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
|
|
641
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
|
|
943
642
|
}
|
|
944
643
|
else if (format instanceof ImageBitmap) {
|
|
945
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
|
|
644
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
|
|
946
645
|
}
|
|
947
646
|
else if (format && typeof format.tagName === 'string' && (format.tagName === 'IMG' || format.tagName === 'IMAGE')) {
|
|
948
647
|
if (format._imageSource instanceof ImageSource) {
|
|
949
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format._imageSource.android);
|
|
648
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._imageSource.android);
|
|
950
649
|
}
|
|
951
650
|
else if (global.isAndroid && format._image instanceof android.graphics.Bitmap) {
|
|
952
651
|
// todo
|
|
953
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format._image);
|
|
652
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._image);
|
|
954
653
|
}
|
|
955
654
|
else if (format._asset instanceof ImageAsset) {
|
|
956
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format._asset.native);
|
|
655
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._asset.native);
|
|
957
656
|
}
|
|
958
657
|
else if (typeof format.src === 'string') {
|
|
959
658
|
const result = ImageSource.fromFileSync(format.src);
|
|
960
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, result ? result.android : null);
|
|
961
|
-
}
|
|
962
|
-
else if (format && typeof format.tagName === 'string' && format.tagName === 'CANVAS' && format._canvas instanceof Canvas) {
|
|
963
|
-
texSubImage2D(target, level, xoffset, yoffset, width, height, format._canvas.native);
|
|
659
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, result ? result.android : null);
|
|
964
660
|
}
|
|
965
661
|
}
|
|
662
|
+
else if (format && typeof format.tagName === 'string' && format.tagName === 'CANVAS' && format._canvas instanceof Canvas) {
|
|
663
|
+
this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._canvas.native);
|
|
664
|
+
}
|
|
966
665
|
}
|
|
967
666
|
}
|
|
968
667
|
uniform1f(location, v0) {
|
|
969
|
-
this._glCheckError('uniform1f');
|
|
970
|
-
this._checkArgs('uniform1f', arguments);
|
|
971
|
-
const uniform1f = this._getMethod('uniform1f');
|
|
972
668
|
const loc = location.native;
|
|
973
|
-
uniform1f(loc, v0);
|
|
669
|
+
this.native.uniform1f(loc, v0);
|
|
974
670
|
}
|
|
975
671
|
uniform1iv(location, value) {
|
|
976
|
-
this._glCheckError('uniform1iv');
|
|
977
|
-
this._checkArgs('uniform1iv', arguments);
|
|
978
672
|
const loc = location.native;
|
|
979
|
-
|
|
980
|
-
uniform1iv(loc, value);
|
|
673
|
+
this.native.uniform1iv(loc, value);
|
|
981
674
|
}
|
|
982
675
|
uniform1fv(location, value) {
|
|
983
|
-
this._glCheckError('uniform1fv');
|
|
984
|
-
this._checkArgs('uniform1fv', arguments);
|
|
985
676
|
const loc = location.native;
|
|
986
|
-
|
|
987
|
-
uniform1fv(loc, value);
|
|
677
|
+
this.native.uniform1fv(loc, value);
|
|
988
678
|
}
|
|
989
679
|
uniform1i(location, v0) {
|
|
990
|
-
this._glCheckError('uniform1i');
|
|
991
|
-
this._checkArgs('uniform1i', arguments);
|
|
992
|
-
const uniform1i = this._getMethod('uniform1i');
|
|
993
680
|
const loc = location.native;
|
|
994
|
-
uniform1i(loc, Number(v0));
|
|
681
|
+
this.native.uniform1i(loc, Number(v0));
|
|
995
682
|
}
|
|
996
683
|
uniform2f(location, v0, v1) {
|
|
997
|
-
this._glCheckError('uniform2f');
|
|
998
|
-
this._checkArgs('uniform2f', arguments);
|
|
999
|
-
const uniform2f = this._getMethod('uniform2f');
|
|
1000
684
|
const loc = location.native;
|
|
1001
|
-
uniform2f(loc, v0, v1);
|
|
685
|
+
this.native.uniform2f(loc, v0, v1);
|
|
1002
686
|
}
|
|
1003
687
|
uniform2iv(location, value) {
|
|
1004
|
-
this._glCheckError('uniform2iv');
|
|
1005
|
-
this._checkArgs('uniform2iv', arguments);
|
|
1006
688
|
const loc = location.native;
|
|
1007
|
-
|
|
1008
|
-
uniform2iv(loc, value);
|
|
689
|
+
this.native.uniform2iv(loc, value);
|
|
1009
690
|
}
|
|
1010
691
|
uniform2fv(location, value) {
|
|
1011
|
-
this._glCheckError('uniform2fv');
|
|
1012
|
-
this._checkArgs('uniform2fv', arguments);
|
|
1013
692
|
const loc = location.native;
|
|
1014
|
-
|
|
1015
|
-
uniform2fv(loc, value);
|
|
693
|
+
this.native.uniform2fv(loc, value);
|
|
1016
694
|
}
|
|
1017
695
|
uniform2i(location, v0, v1) {
|
|
1018
|
-
this._glCheckError('uniform2i');
|
|
1019
|
-
this._checkArgs('uniform2i', arguments);
|
|
1020
|
-
const uniform2i = this._getMethod('uniform2i');
|
|
1021
696
|
const loc = location.native;
|
|
1022
|
-
uniform2i(loc, v0, v1);
|
|
697
|
+
this.native.uniform2i(loc, v0, v1);
|
|
1023
698
|
}
|
|
1024
699
|
uniform3f(location, v0, v1, v2) {
|
|
1025
|
-
this._glCheckError('uniform3f');
|
|
1026
|
-
this._checkArgs('uniform3f', arguments);
|
|
1027
|
-
const uniform3f = this._getMethod('uniform3f');
|
|
1028
700
|
const loc = location.native;
|
|
1029
|
-
uniform3f(loc, v0, v1, v2);
|
|
701
|
+
this.native.uniform3f(loc, v0, v1, v2);
|
|
1030
702
|
}
|
|
1031
703
|
uniform3iv(location, value) {
|
|
1032
|
-
this._glCheckError('uniform3iv');
|
|
1033
|
-
this._checkArgs('uniform3iv', arguments);
|
|
1034
704
|
const loc = location.native;
|
|
1035
|
-
|
|
1036
|
-
uniform3iv(loc, value);
|
|
705
|
+
this.native.uniform3iv(loc, value);
|
|
1037
706
|
}
|
|
1038
707
|
uniform3fv(location, value) {
|
|
1039
|
-
this._glCheckError('uniform3fv');
|
|
1040
|
-
this._checkArgs('uniform3fv', arguments);
|
|
1041
708
|
const loc = location.native;
|
|
1042
|
-
|
|
1043
|
-
uniform3fv(loc, value);
|
|
709
|
+
this.native.uniform3fv(loc, value);
|
|
1044
710
|
}
|
|
1045
711
|
uniform3i(location, v0, v1, v2) {
|
|
1046
|
-
this._glCheckError('uniform3i');
|
|
1047
|
-
this._checkArgs('uniform3i', arguments);
|
|
1048
|
-
const uniform3i = this._getMethod('uniform3i');
|
|
1049
712
|
const loc = location.native;
|
|
1050
|
-
uniform3i(loc, v0, v1, v2);
|
|
713
|
+
this.native.uniform3i(loc, v0, v1, v2);
|
|
1051
714
|
}
|
|
1052
715
|
uniform4f(location, v0, v1, v2, v3) {
|
|
1053
|
-
this._glCheckError('uniform4f');
|
|
1054
|
-
this._checkArgs('uniform4f', arguments);
|
|
1055
|
-
const uniform4f = this._getMethod('uniform4f');
|
|
1056
716
|
const loc = location.native;
|
|
1057
|
-
uniform4f(loc, v0, v1, v2, v3);
|
|
717
|
+
this.native.uniform4f(loc, v0, v1, v2, v3);
|
|
1058
718
|
}
|
|
1059
719
|
uniform4iv(location, value) {
|
|
1060
|
-
this._glCheckError('uniform4iv');
|
|
1061
|
-
this._checkArgs('uniform4iv', arguments);
|
|
1062
720
|
const loc = location.native;
|
|
1063
|
-
|
|
1064
|
-
uniform4iv(loc, value);
|
|
721
|
+
this.native.uniform4iv(loc, value);
|
|
1065
722
|
}
|
|
1066
723
|
uniform4fv(location, value) {
|
|
1067
|
-
this._glCheckError('uniform4fv');
|
|
1068
|
-
this._checkArgs('uniform4fv', arguments);
|
|
1069
724
|
const loc = location.native;
|
|
1070
|
-
|
|
1071
|
-
uniform4fv(loc, value);
|
|
725
|
+
this.native.uniform4fv(loc, value);
|
|
1072
726
|
}
|
|
1073
727
|
uniform4i(location, v0, v1, v2, v3) {
|
|
1074
|
-
this._glCheckError('uniform4i');
|
|
1075
|
-
this._checkArgs('uniform4i', arguments);
|
|
1076
|
-
const uniform4i = this._getMethod('uniform4i');
|
|
1077
728
|
const loc = location.native;
|
|
1078
|
-
uniform4i(loc, v0, v1, v2, v3);
|
|
729
|
+
this.native.uniform4i(loc, v0, v1, v2, v3);
|
|
1079
730
|
}
|
|
1080
731
|
uniformMatrix2fv(location, transpose, value) {
|
|
1081
|
-
this._glCheckError('uniformMatrix2fv');
|
|
1082
|
-
this._checkArgs('uniformMatrix2fv', arguments);
|
|
1083
732
|
const loc = location.native;
|
|
1084
|
-
|
|
1085
|
-
uniformMatrix2fv(loc, transpose, value);
|
|
733
|
+
this.native.uniformMatrix2fv(loc, transpose, value);
|
|
1086
734
|
}
|
|
1087
735
|
uniformMatrix3fv(location, transpose, value) {
|
|
1088
|
-
this._glCheckError('uniformMatrix3fv');
|
|
1089
|
-
this._checkArgs('uniformMatrix3fv', arguments);
|
|
1090
736
|
const loc = location.native;
|
|
1091
|
-
|
|
1092
|
-
uniformMatrix3fv(loc, transpose, value);
|
|
737
|
+
this.native.uniformMatrix3fv(loc, transpose, value);
|
|
1093
738
|
}
|
|
1094
739
|
uniformMatrix4fv(location, transpose, value) {
|
|
1095
|
-
this._glCheckError('uniformMatrix4fv');
|
|
1096
|
-
this._checkArgs('uniformMatrix4fv', arguments);
|
|
1097
740
|
const loc = location.native;
|
|
1098
|
-
|
|
1099
|
-
uniformMatrix4fv(loc, transpose, value);
|
|
741
|
+
this.native.uniformMatrix4fv(loc, transpose, value);
|
|
1100
742
|
}
|
|
1101
743
|
useProgram(program) {
|
|
1102
|
-
this._glCheckError('useProgram');
|
|
1103
|
-
this._checkArgs('useProgram', arguments);
|
|
1104
|
-
const useProgram = this._getMethod('useProgram');
|
|
1105
744
|
const value = program ? program.native : null;
|
|
1106
|
-
useProgram(value);
|
|
745
|
+
this.native.useProgram(value);
|
|
1107
746
|
}
|
|
1108
747
|
validateProgram(program) {
|
|
1109
|
-
this._glCheckError('validateProgram');
|
|
1110
|
-
this._checkArgs('validateProgram', arguments);
|
|
1111
|
-
const validateProgram = this._getMethod('validateProgram');
|
|
1112
748
|
const value = program.native;
|
|
1113
|
-
validateProgram(value);
|
|
749
|
+
this.native.validateProgram(value);
|
|
1114
750
|
}
|
|
1115
751
|
vertexAttrib1f(index, v0) {
|
|
1116
|
-
this.
|
|
1117
|
-
this._checkArgs('vertexAttrib1f', arguments);
|
|
1118
|
-
const vertexAttrib1f = this._getMethod('vertexAttrib1f');
|
|
1119
|
-
vertexAttrib1f(index, v0);
|
|
752
|
+
this.native.vertexAttrib1f(index, v0);
|
|
1120
753
|
}
|
|
1121
754
|
vertexAttrib1fv(index, value) {
|
|
1122
|
-
this.
|
|
1123
|
-
this._checkArgs('vertexAttrib1fv', arguments);
|
|
1124
|
-
const vertexAttrib1fv = this._getMethod('vertexAttrib1fv');
|
|
1125
|
-
vertexAttrib1fv(index, value);
|
|
755
|
+
this.native.vertexAttrib1fv(index, value);
|
|
1126
756
|
}
|
|
1127
757
|
vertexAttrib2f(index, v0, v1) {
|
|
1128
|
-
this.
|
|
1129
|
-
this._checkArgs('vertexAttrib2f', arguments);
|
|
1130
|
-
const vertexAttrib2f = this._getMethod('vertexAttrib2f');
|
|
1131
|
-
vertexAttrib2f(index, v0, v1);
|
|
758
|
+
this.native.vertexAttrib2f(index, v0, v1);
|
|
1132
759
|
}
|
|
1133
760
|
vertexAttrib2fv(index, value) {
|
|
1134
|
-
this.
|
|
1135
|
-
this._checkArgs('vertexAttrib2fv', arguments);
|
|
1136
|
-
const vertexAttrib2fv = this._getMethod('vertexAttrib2fv');
|
|
1137
|
-
vertexAttrib2fv(index, value);
|
|
761
|
+
this.native.vertexAttrib2fv(index, value);
|
|
1138
762
|
}
|
|
1139
763
|
vertexAttrib3f(index, v0, v1, v2) {
|
|
1140
|
-
this.
|
|
1141
|
-
this._checkArgs('vertexAttrib3f', arguments);
|
|
1142
|
-
const vertexAttrib3f = this._getMethod('vertexAttrib3f');
|
|
1143
|
-
vertexAttrib3f(index, v0, v1, v2);
|
|
764
|
+
this.native.vertexAttrib3f(index, v0, v1, v2);
|
|
1144
765
|
}
|
|
1145
766
|
vertexAttrib3fv(index, value) {
|
|
1146
|
-
this.
|
|
1147
|
-
this._checkArgs('vertexAttrib3fv', arguments);
|
|
1148
|
-
const vertexAttrib3fv = this._getMethod('vertexAttrib3fv');
|
|
1149
|
-
vertexAttrib3fv(index, value);
|
|
767
|
+
this.native.vertexAttrib3fv(index, value);
|
|
1150
768
|
}
|
|
1151
769
|
vertexAttrib4f(index, v0, v1, v2, v3) {
|
|
1152
|
-
this.
|
|
1153
|
-
this._checkArgs('vertexAttrib4f', arguments);
|
|
1154
|
-
const vertexAttrib4f = this._getMethod('vertexAttrib4f');
|
|
1155
|
-
vertexAttrib4f(index, v0, v1, v2, v3);
|
|
770
|
+
this.native.vertexAttrib4f(index, v0, v1, v2, v3);
|
|
1156
771
|
}
|
|
1157
772
|
vertexAttrib4fv(index, value) {
|
|
1158
|
-
this.
|
|
1159
|
-
this._checkArgs('vertexAttrib4fv', arguments);
|
|
1160
|
-
const vertexAttrib4fv = this._getMethod('vertexAttrib4fv');
|
|
1161
|
-
vertexAttrib4fv(index, value);
|
|
773
|
+
this.native.vertexAttrib4fv(index, value);
|
|
1162
774
|
}
|
|
1163
775
|
vertexAttribPointer(index, size, type, normalized, stride, offset) {
|
|
1164
|
-
this.
|
|
1165
|
-
this._checkArgs('vertexAttribPointer', arguments);
|
|
1166
|
-
const vertexAttribPointer = this._getMethod('vertexAttribPointer');
|
|
1167
|
-
vertexAttribPointer(index, size, type, normalized, stride, offset);
|
|
776
|
+
this.native.vertexAttribPointer(index, size, type, !!normalized, stride, offset);
|
|
1168
777
|
}
|
|
1169
778
|
viewport(x, y, width, height) {
|
|
1170
|
-
this.
|
|
1171
|
-
this._checkArgs('viewport', arguments);
|
|
1172
|
-
const viewport = this._getMethod('viewport');
|
|
1173
|
-
viewport(x, y, width, height);
|
|
779
|
+
this.native.viewport(x, y, width, height);
|
|
1174
780
|
}
|
|
1175
781
|
_glCheckError(message) {
|
|
1176
782
|
if (!WebGLRenderingContext.isDebug) {
|
|
@@ -1195,7 +801,6 @@ WebGLRenderingContext.isDebug = false;
|
|
|
1195
801
|
WebGLRenderingContext.filter = 'both';
|
|
1196
802
|
(() => {
|
|
1197
803
|
Helpers.initialize();
|
|
1198
|
-
ctor = global.CanvasJSIModule.createWebGLContext;
|
|
1199
804
|
})();
|
|
1200
805
|
__decorate([
|
|
1201
806
|
profile,
|
|
@@ -1842,13 +1447,13 @@ __decorate([
|
|
|
1842
1447
|
__decorate([
|
|
1843
1448
|
profile,
|
|
1844
1449
|
__metadata("design:type", Function),
|
|
1845
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1450
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1846
1451
|
__metadata("design:returntype", void 0)
|
|
1847
1452
|
], WebGLRenderingContext.prototype, "uniform1iv", null);
|
|
1848
1453
|
__decorate([
|
|
1849
1454
|
profile,
|
|
1850
1455
|
__metadata("design:type", Function),
|
|
1851
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1456
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1852
1457
|
__metadata("design:returntype", void 0)
|
|
1853
1458
|
], WebGLRenderingContext.prototype, "uniform1fv", null);
|
|
1854
1459
|
__decorate([
|
|
@@ -1866,13 +1471,13 @@ __decorate([
|
|
|
1866
1471
|
__decorate([
|
|
1867
1472
|
profile,
|
|
1868
1473
|
__metadata("design:type", Function),
|
|
1869
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1474
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1870
1475
|
__metadata("design:returntype", void 0)
|
|
1871
1476
|
], WebGLRenderingContext.prototype, "uniform2iv", null);
|
|
1872
1477
|
__decorate([
|
|
1873
1478
|
profile,
|
|
1874
1479
|
__metadata("design:type", Function),
|
|
1875
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1480
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1876
1481
|
__metadata("design:returntype", void 0)
|
|
1877
1482
|
], WebGLRenderingContext.prototype, "uniform2fv", null);
|
|
1878
1483
|
__decorate([
|
|
@@ -1890,13 +1495,13 @@ __decorate([
|
|
|
1890
1495
|
__decorate([
|
|
1891
1496
|
profile,
|
|
1892
1497
|
__metadata("design:type", Function),
|
|
1893
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1498
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1894
1499
|
__metadata("design:returntype", void 0)
|
|
1895
1500
|
], WebGLRenderingContext.prototype, "uniform3iv", null);
|
|
1896
1501
|
__decorate([
|
|
1897
1502
|
profile,
|
|
1898
1503
|
__metadata("design:type", Function),
|
|
1899
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1504
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1900
1505
|
__metadata("design:returntype", void 0)
|
|
1901
1506
|
], WebGLRenderingContext.prototype, "uniform3fv", null);
|
|
1902
1507
|
__decorate([
|
|
@@ -1914,13 +1519,13 @@ __decorate([
|
|
|
1914
1519
|
__decorate([
|
|
1915
1520
|
profile,
|
|
1916
1521
|
__metadata("design:type", Function),
|
|
1917
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1522
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1918
1523
|
__metadata("design:returntype", void 0)
|
|
1919
1524
|
], WebGLRenderingContext.prototype, "uniform4iv", null);
|
|
1920
1525
|
__decorate([
|
|
1921
1526
|
profile,
|
|
1922
1527
|
__metadata("design:type", Function),
|
|
1923
|
-
__metadata("design:paramtypes", [WebGLUniformLocation,
|
|
1528
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Object]),
|
|
1924
1529
|
__metadata("design:returntype", void 0)
|
|
1925
1530
|
], WebGLRenderingContext.prototype, "uniform4fv", null);
|
|
1926
1531
|
__decorate([
|
|
@@ -1932,19 +1537,19 @@ __decorate([
|
|
|
1932
1537
|
__decorate([
|
|
1933
1538
|
profile,
|
|
1934
1539
|
__metadata("design:type", Function),
|
|
1935
|
-
__metadata("design:paramtypes", [WebGLUniformLocation, Boolean,
|
|
1540
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Object]),
|
|
1936
1541
|
__metadata("design:returntype", void 0)
|
|
1937
1542
|
], WebGLRenderingContext.prototype, "uniformMatrix2fv", null);
|
|
1938
1543
|
__decorate([
|
|
1939
1544
|
profile,
|
|
1940
1545
|
__metadata("design:type", Function),
|
|
1941
|
-
__metadata("design:paramtypes", [WebGLUniformLocation, Boolean,
|
|
1546
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Object]),
|
|
1942
1547
|
__metadata("design:returntype", void 0)
|
|
1943
1548
|
], WebGLRenderingContext.prototype, "uniformMatrix3fv", null);
|
|
1944
1549
|
__decorate([
|
|
1945
1550
|
profile,
|
|
1946
1551
|
__metadata("design:type", Function),
|
|
1947
|
-
__metadata("design:paramtypes", [WebGLUniformLocation, Boolean,
|
|
1552
|
+
__metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Object]),
|
|
1948
1553
|
__metadata("design:returntype", void 0)
|
|
1949
1554
|
], WebGLRenderingContext.prototype, "uniformMatrix4fv", null);
|
|
1950
1555
|
__decorate([
|
|
@@ -1968,7 +1573,7 @@ __decorate([
|
|
|
1968
1573
|
__decorate([
|
|
1969
1574
|
profile,
|
|
1970
1575
|
__metadata("design:type", Function),
|
|
1971
|
-
__metadata("design:paramtypes", [Number,
|
|
1576
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
1972
1577
|
__metadata("design:returntype", void 0)
|
|
1973
1578
|
], WebGLRenderingContext.prototype, "vertexAttrib1fv", null);
|
|
1974
1579
|
__decorate([
|
|
@@ -1980,7 +1585,7 @@ __decorate([
|
|
|
1980
1585
|
__decorate([
|
|
1981
1586
|
profile,
|
|
1982
1587
|
__metadata("design:type", Function),
|
|
1983
|
-
__metadata("design:paramtypes", [Number,
|
|
1588
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
1984
1589
|
__metadata("design:returntype", void 0)
|
|
1985
1590
|
], WebGLRenderingContext.prototype, "vertexAttrib2fv", null);
|
|
1986
1591
|
__decorate([
|
|
@@ -1992,7 +1597,7 @@ __decorate([
|
|
|
1992
1597
|
__decorate([
|
|
1993
1598
|
profile,
|
|
1994
1599
|
__metadata("design:type", Function),
|
|
1995
|
-
__metadata("design:paramtypes", [Number,
|
|
1600
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
1996
1601
|
__metadata("design:returntype", void 0)
|
|
1997
1602
|
], WebGLRenderingContext.prototype, "vertexAttrib3fv", null);
|
|
1998
1603
|
__decorate([
|
|
@@ -2004,7 +1609,7 @@ __decorate([
|
|
|
2004
1609
|
__decorate([
|
|
2005
1610
|
profile,
|
|
2006
1611
|
__metadata("design:type", Function),
|
|
2007
|
-
__metadata("design:paramtypes", [Number,
|
|
1612
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
2008
1613
|
__metadata("design:returntype", void 0)
|
|
2009
1614
|
], WebGLRenderingContext.prototype, "vertexAttrib4fv", null);
|
|
2010
1615
|
__decorate([
|