@nativescript/canvas 2.0.0-alpha.20 → 2.0.0-alpha.22
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 +2 -0
- package/Canvas/common.js +6 -0
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +0 -2
- package/Canvas/index.android.js +8 -24
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +7 -0
- package/Canvas/index.ios.d.ts +0 -2
- package/Canvas/index.ios.js +7 -26
- 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 +0 -2
- package/Canvas2D/CanvasRenderingContext2D/index.js +120 -138
- 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 +5 -5
- 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/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 +23 -29
- package/ImageBitmap/index.js.map +1 -1
- package/SVG/SVG.js +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 +0 -9
- package/WebGL/WebGLExtensions/index.js +17 -74
- package/WebGL/WebGLExtensions/index.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.js +159 -298
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +107 -195
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +5 -5
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs.map +1 -1
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs.map +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- 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 +87 -57
- 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 +2589 -110
- 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 +1174 -89
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -2
- 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 +2 -2
- 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 +174 -114
- 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 +2589 -110
- 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 +1174 -89
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -2
- 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 +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +1174 -89
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -2
- 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 +2 -2
- 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 +3 -0
- 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 +186 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1582 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +7 -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 -38
- 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 +22 -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 +25 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +21 -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 +188 -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/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 +2391 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +264 -21
- 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 +800 -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 +93 -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 +6457 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +261 -390
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +17 -16
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +15 -36
- 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 -12
- 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 +323 -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 +36 -15
- 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 +43 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +126 -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 +4380 -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/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 -46
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
- 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 -1972
- 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 -5958
- 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 -4551
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
|
@@ -12,7 +12,6 @@ import { WebGL2RenderingContextBase } from './common';
|
|
|
12
12
|
import { Canvas } from '../../Canvas';
|
|
13
13
|
import { ImageBitmap } from '../../ImageBitmap';
|
|
14
14
|
import { Helpers } from '../../helpers';
|
|
15
|
-
let ctor;
|
|
16
15
|
export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
17
16
|
constructor(context, contextOptions) {
|
|
18
17
|
super(null);
|
|
@@ -33,231 +32,192 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
|
33
32
|
else {
|
|
34
33
|
//direction = 1;
|
|
35
34
|
}
|
|
36
|
-
const native =
|
|
35
|
+
const native = global.CanvasModule.createWebGL2Context(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
|
|
37
36
|
this._context = native;
|
|
38
37
|
}
|
|
39
38
|
/* Transform feedback */
|
|
40
39
|
beginQuery(target, query) {
|
|
41
40
|
this._glCheckError('beginQuery');
|
|
42
41
|
const value = query.native;
|
|
43
|
-
|
|
44
|
-
beginQuery(target, value);
|
|
42
|
+
this.native.beginQuery(target, value);
|
|
45
43
|
}
|
|
46
44
|
beginTransformFeedback(primitiveMode) {
|
|
47
45
|
this._glCheckError('beginTransformFeedback');
|
|
48
|
-
|
|
49
|
-
beginTransformFeedback(primitiveMode);
|
|
46
|
+
this.native.beginTransformFeedback(primitiveMode);
|
|
50
47
|
}
|
|
51
48
|
bindBufferBase(target, index, buffer) {
|
|
52
49
|
this._glCheckError('bindBufferBase');
|
|
53
50
|
const value = buffer ? buffer.native : null;
|
|
54
|
-
|
|
55
|
-
bindBufferBase(target, index, value);
|
|
51
|
+
this.native.bindBufferBase(target, index, value);
|
|
56
52
|
}
|
|
57
53
|
bindBufferRange(target, index, buffer, offset, size) {
|
|
58
54
|
this._glCheckError('bindBufferRange');
|
|
59
55
|
const value = buffer ? buffer.native : null;
|
|
60
|
-
|
|
61
|
-
bindBufferRange(target, index, value, offset, size);
|
|
56
|
+
this.native.bindBufferRange(target, index, value, offset, size);
|
|
62
57
|
}
|
|
63
58
|
bindSampler(unit, sampler) {
|
|
64
59
|
this._glCheckError('bindSampler');
|
|
65
60
|
const value = sampler ? sampler.native : null;
|
|
66
|
-
|
|
67
|
-
bindSampler(unit, value);
|
|
61
|
+
this.native.bindSampler(unit, value);
|
|
68
62
|
}
|
|
69
63
|
bindTransformFeedback(target, transformFeedback) {
|
|
70
64
|
this._glCheckError('bindTransformFeedback');
|
|
71
65
|
const value = transformFeedback ? transformFeedback.native : null;
|
|
72
|
-
|
|
73
|
-
bindTransformFeedback(target, value);
|
|
66
|
+
this.native.bindTransformFeedback(target, value);
|
|
74
67
|
}
|
|
75
68
|
bindVertexArray(vertexArray) {
|
|
76
69
|
this._glCheckError('bindVertexArray');
|
|
77
70
|
const value = vertexArray ? vertexArray.native : null;
|
|
78
|
-
|
|
79
|
-
bindVertexArray(value);
|
|
71
|
+
this.native.bindVertexArray(value);
|
|
80
72
|
}
|
|
81
73
|
blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) {
|
|
82
74
|
this._glCheckError('blitFramebuffer');
|
|
83
|
-
|
|
84
|
-
blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
|
|
75
|
+
this.native.blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
|
|
85
76
|
}
|
|
86
77
|
clearBufferfi(buffer, drawbuffer, depth, stencil) {
|
|
87
78
|
this._glCheckError('clearBufferfi');
|
|
88
79
|
const value = buffer.native;
|
|
89
|
-
|
|
90
|
-
clearBufferfi(value, drawbuffer, depth, stencil);
|
|
80
|
+
this.native.clearBufferfi(value, drawbuffer, depth, stencil);
|
|
91
81
|
}
|
|
92
82
|
clearBufferfv(buffer, drawbuffer, values) {
|
|
93
83
|
this._glCheckError('clearBufferfv');
|
|
94
|
-
const clearBufferfv = this._getMethod('clearBufferfv');
|
|
95
84
|
const value = buffer.native;
|
|
96
|
-
clearBufferfv(value, drawbuffer, values);
|
|
85
|
+
this.native.clearBufferfv(value, drawbuffer, values);
|
|
97
86
|
}
|
|
98
87
|
clearBufferiv(buffer, drawbuffer, values) {
|
|
99
88
|
this._glCheckError('clearBufferiv');
|
|
100
|
-
const clearBufferiv = this._getMethod('clearBufferiv');
|
|
101
89
|
const value = buffer ? buffer.native : 0;
|
|
102
|
-
clearBufferiv(value, drawbuffer, values);
|
|
90
|
+
this.native.clearBufferiv(value, drawbuffer, values);
|
|
103
91
|
}
|
|
104
92
|
clearBufferuiv(buffer, drawbuffer, values) {
|
|
105
93
|
this._glCheckError('clearBufferuiv');
|
|
106
|
-
const clearBufferuiv = this._getMethod('clearBufferuiv');
|
|
107
94
|
const value = buffer ? buffer.native : 0;
|
|
108
|
-
clearBufferuiv(value, drawbuffer, values);
|
|
95
|
+
this.native.clearBufferuiv(value, drawbuffer, values);
|
|
109
96
|
}
|
|
110
97
|
clientWaitSync(sync, flags, timeout) {
|
|
111
98
|
this._glCheckError('clientWaitSync');
|
|
112
|
-
const clientWaitSync = this._getMethod('clientWaitSync');
|
|
113
99
|
const value = sync.native;
|
|
114
|
-
return clientWaitSync(value, flags, timeout);
|
|
100
|
+
return this.native.clientWaitSync(value, flags, timeout);
|
|
115
101
|
}
|
|
116
102
|
compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset = 0, srcLengthOverride = 0) {
|
|
117
103
|
this._glCheckError('compressedTexSubImage3D');
|
|
118
|
-
|
|
119
|
-
compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset);
|
|
104
|
+
this.native.compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset);
|
|
120
105
|
}
|
|
121
106
|
/* Transform feedback */
|
|
122
107
|
/* Framebuffers and renderbuffers */
|
|
123
108
|
copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size) {
|
|
124
109
|
this._glCheckError('copyBufferSubData');
|
|
125
|
-
|
|
126
|
-
copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
|
|
110
|
+
this.native.copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
|
|
127
111
|
}
|
|
128
112
|
copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height) {
|
|
129
113
|
this._glCheckError('copyTexSubImage3D');
|
|
130
|
-
|
|
131
|
-
copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
|
114
|
+
this.native.copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
|
132
115
|
}
|
|
133
116
|
createQuery() {
|
|
134
117
|
this._glCheckError('createQuery');
|
|
135
|
-
|
|
136
|
-
return new WebGLQuery(createQuery());
|
|
118
|
+
return new WebGLQuery(this.native.createQuery());
|
|
137
119
|
}
|
|
138
120
|
createSampler() {
|
|
139
121
|
this._glCheckError('createSampler');
|
|
140
|
-
|
|
141
|
-
return new WebGLSampler(createSampler());
|
|
122
|
+
return new WebGLSampler(this.native.createSampler());
|
|
142
123
|
}
|
|
143
124
|
createTransformFeedback() {
|
|
144
125
|
this._glCheckError('createTransformFeedback');
|
|
145
|
-
|
|
146
|
-
return new WebGLTransformFeedback(createTransformFeedback());
|
|
126
|
+
return new WebGLTransformFeedback(this.native.createTransformFeedback());
|
|
147
127
|
}
|
|
148
128
|
createVertexArray() {
|
|
149
129
|
this._glCheckError('createVertexArray');
|
|
150
|
-
|
|
151
|
-
return new WebGLVertexArrayObject(createVertexArray());
|
|
130
|
+
return new WebGLVertexArrayObject(this.native.createVertexArray());
|
|
152
131
|
}
|
|
153
132
|
deleteQuery(query) {
|
|
154
133
|
this._glCheckError('deleteQuery');
|
|
155
|
-
const deleteQuery = this._getMethod('deleteQuery');
|
|
156
134
|
const value = query.native;
|
|
157
|
-
deleteQuery(value);
|
|
135
|
+
this.native.deleteQuery(value);
|
|
158
136
|
}
|
|
159
137
|
deleteSampler(sampler) {
|
|
160
138
|
this._glCheckError('deleteSampler');
|
|
161
|
-
const deleteSampler = this._getMethod('deleteSampler');
|
|
162
139
|
const value = sampler.native;
|
|
163
|
-
deleteSampler(value);
|
|
140
|
+
this.native.deleteSampler(value);
|
|
164
141
|
}
|
|
165
142
|
deleteSync(sync) {
|
|
166
143
|
this._glCheckError('deleteSync');
|
|
167
|
-
const deleteSync = this._getMethod('deleteSync');
|
|
168
144
|
const value = sync.native;
|
|
169
|
-
deleteSync(value);
|
|
145
|
+
this.native.deleteSync(value);
|
|
170
146
|
}
|
|
171
147
|
deleteTransformFeedback(transformFeedback) {
|
|
172
148
|
this._glCheckError('deleteTransformFeedback');
|
|
173
|
-
const deleteTransformFeedback = this._getMethod('deleteTransformFeedback');
|
|
174
149
|
const value = transformFeedback.native;
|
|
175
|
-
deleteTransformFeedback(value);
|
|
150
|
+
this.native.deleteTransformFeedback(value);
|
|
176
151
|
}
|
|
177
152
|
deleteVertexArray(vertexArray) {
|
|
178
153
|
this._glCheckError('deleteVertexArray');
|
|
179
|
-
const deleteVertexArray = this._getMethod('deleteVertexArray');
|
|
180
154
|
const value = vertexArray.native;
|
|
181
|
-
deleteVertexArray(value);
|
|
155
|
+
this.native.deleteVertexArray(value);
|
|
182
156
|
}
|
|
183
157
|
drawArraysInstanced(mode, first, count, instanceCount) {
|
|
184
158
|
this._glCheckError('drawArraysInstanced');
|
|
185
|
-
|
|
186
|
-
drawArraysInstanced(mode, first, count, instanceCount);
|
|
159
|
+
this.native.drawArraysInstanced(mode, first, count, instanceCount);
|
|
187
160
|
}
|
|
188
161
|
drawBuffers(buffers) {
|
|
189
162
|
this._glCheckError('drawBuffers');
|
|
190
163
|
this._checkArgs('drawBuffers', arguments);
|
|
191
|
-
|
|
192
|
-
drawBuffers(buffers);
|
|
164
|
+
this.native.drawBuffers(buffers);
|
|
193
165
|
}
|
|
194
166
|
drawElementsInstanced(mode, count, type, offset, instanceCount) {
|
|
195
167
|
this._glCheckError('drawElementsInstanced');
|
|
196
|
-
|
|
197
|
-
drawElementsInstanced(mode, count, type, offset, instanceCount);
|
|
168
|
+
this.native.drawElementsInstanced(mode, count, type, offset, instanceCount);
|
|
198
169
|
}
|
|
199
170
|
drawRangeElements(mode, start, end, count, type, offset) {
|
|
200
171
|
this._glCheckError('drawRangeElements');
|
|
201
|
-
|
|
202
|
-
drawRangeElements(mode, start, end, count, type, offset);
|
|
172
|
+
this.native.drawRangeElements(mode, start, end, count, type, offset);
|
|
203
173
|
}
|
|
204
174
|
endQuery(target) {
|
|
205
175
|
this._glCheckError('endQuery');
|
|
206
|
-
|
|
207
|
-
endQuery(target);
|
|
176
|
+
this.native.endQuery(target);
|
|
208
177
|
}
|
|
209
178
|
endTransformFeedback() {
|
|
210
179
|
this._glCheckError('endTransformFeedback');
|
|
211
|
-
|
|
212
|
-
endTransformFeedback();
|
|
180
|
+
this.native.endTransformFeedback();
|
|
213
181
|
}
|
|
214
182
|
fenceSync(condition, flags) {
|
|
215
183
|
this._glCheckError('fenceSync');
|
|
216
|
-
|
|
217
|
-
return new WebGLSync(fenceSync(condition, flags));
|
|
184
|
+
return new WebGLSync(this.native.fenceSync(condition, flags));
|
|
218
185
|
}
|
|
219
186
|
framebufferTextureLayer(target, attachment, texture, level, layer) {
|
|
220
187
|
this._glCheckError('framebufferTextureLayer');
|
|
221
|
-
const framebufferTextureLayer = this._getMethod('framebufferTextureLayer');
|
|
222
188
|
const value = texture.native;
|
|
223
|
-
framebufferTextureLayer(target, attachment, value, level, layer);
|
|
189
|
+
this.native.framebufferTextureLayer(target, attachment, value, level, layer);
|
|
224
190
|
}
|
|
225
191
|
/* Framebuffers and renderbuffers */
|
|
226
192
|
/* Uniforms */
|
|
227
193
|
getActiveUniformBlockName(program, uniformBlockIndex) {
|
|
228
194
|
this._glCheckError('getActiveUniformBlockName');
|
|
229
|
-
const getActiveUniformBlockName = this._getMethod('getActiveUniformBlockName');
|
|
230
195
|
const value = program.native;
|
|
231
|
-
return getActiveUniformBlockName(value, uniformBlockIndex);
|
|
196
|
+
return this.native.getActiveUniformBlockName(value, uniformBlockIndex);
|
|
232
197
|
}
|
|
233
198
|
getActiveUniformBlockParameter(program, uniformBlockIndex, pname) {
|
|
234
199
|
this._glCheckError('getActiveUniformBlockParameter');
|
|
235
|
-
const getActiveUniformBlockParameter = this._getMethod('getActiveUniformBlockParameter');
|
|
236
200
|
const value = program.native;
|
|
237
|
-
return getActiveUniformBlockParameter(value, uniformBlockIndex, pname);
|
|
201
|
+
return this.native.getActiveUniformBlockParameter(value, uniformBlockIndex, pname);
|
|
238
202
|
}
|
|
239
203
|
getActiveUniforms(program, uniformIndices, pname) {
|
|
240
204
|
this._glCheckError('getActiveUniforms');
|
|
241
|
-
const getActiveUniforms = this._getMethod('getActiveUniforms');
|
|
242
205
|
const value = program.native;
|
|
243
|
-
return getActiveUniforms(value, uniformIndices, pname);
|
|
206
|
+
return this.native.getActiveUniforms(value, uniformIndices, pname);
|
|
244
207
|
}
|
|
245
208
|
getBufferSubData(target, srcByteOffset, dstData, dstOffset = 0, length = 0) {
|
|
246
209
|
this._glCheckError('getBufferSubData');
|
|
247
|
-
|
|
248
|
-
getBufferSubData(target, srcByteOffset, dstData, dstOffset, length);
|
|
210
|
+
this.native.getBufferSubData(target, srcByteOffset, dstData, dstOffset, length);
|
|
249
211
|
}
|
|
250
212
|
getFragDataLocation(program, name) {
|
|
251
213
|
this._glCheckError('getFragDataLocation');
|
|
252
|
-
const getFragDataLocation = this._getMethod('getFragDataLocation');
|
|
253
214
|
const value = program.native;
|
|
254
|
-
const result = getFragDataLocation(value, name);
|
|
215
|
+
const result = this.native.getFragDataLocation(value, name);
|
|
255
216
|
return result !== -1 ? result : null;
|
|
256
217
|
}
|
|
257
218
|
getIndexedParameter(target, index) {
|
|
258
219
|
this._glCheckError('getIndexedParameter');
|
|
259
|
-
const
|
|
260
|
-
const param = getIndexedParameter(target, index);
|
|
220
|
+
const param = this.native.getIndexedParameter(target, index);
|
|
261
221
|
if (target === this.TRANSFORM_FEEDBACK_BUFFER_BINDING || target === this.UNIFORM_BUFFER_BINDING) {
|
|
262
222
|
return new WebGLBuffer(param);
|
|
263
223
|
}
|
|
@@ -265,14 +225,12 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
|
265
225
|
}
|
|
266
226
|
getInternalformatParameter(target, internalformat, pname) {
|
|
267
227
|
this._glCheckError('getInternalformatParameter');
|
|
268
|
-
|
|
269
|
-
return getInternalformatParameter(target, internalformat, pname);
|
|
228
|
+
return this.native.getInternalformatParameter(target, internalformat, pname);
|
|
270
229
|
}
|
|
271
230
|
getQueryParameter(query, pname) {
|
|
272
231
|
this._glCheckError('getQueryParameter');
|
|
273
|
-
const getQueryParameter = this._getMethod('getQueryParameter');
|
|
274
232
|
const value = query.native;
|
|
275
|
-
const result = getQueryParameter(value, pname);
|
|
233
|
+
const result = this.native.getQueryParameter(value, pname);
|
|
276
234
|
if (result === 0) {
|
|
277
235
|
return null;
|
|
278
236
|
}
|
|
@@ -282,8 +240,7 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
|
282
240
|
getParameter(pname) {
|
|
283
241
|
this._glCheckError('getParameter');
|
|
284
242
|
this._checkArgs('getParameter', arguments);
|
|
285
|
-
const
|
|
286
|
-
const value = getParameter(pname);
|
|
243
|
+
const value = this.native.getParameter(pname);
|
|
287
244
|
switch (pname) {
|
|
288
245
|
case this.COPY_READ_BUFFER_BINDING:
|
|
289
246
|
case this.COPY_WRITE_BUFFER_BINDING:
|
|
@@ -302,8 +259,7 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
|
302
259
|
}
|
|
303
260
|
getQuery(target, pname) {
|
|
304
261
|
this._glCheckError('getQuery');
|
|
305
|
-
const
|
|
306
|
-
const query = getQuery(target, pname);
|
|
262
|
+
const query = this.native.getQuery(target, pname);
|
|
307
263
|
if (query) {
|
|
308
264
|
return new WebGLQuery(query);
|
|
309
265
|
}
|
|
@@ -311,21 +267,18 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
|
311
267
|
}
|
|
312
268
|
getSamplerParameter(sampler, pname) {
|
|
313
269
|
this._glCheckError('getSamplerParameter');
|
|
314
|
-
const getSamplerParameter = this._getMethod('getSamplerParameter');
|
|
315
270
|
const value = sampler.native;
|
|
316
|
-
return getSamplerParameter(value, pname);
|
|
271
|
+
return this.native.getSamplerParameter(value, pname);
|
|
317
272
|
}
|
|
318
273
|
getSyncParameter(sync, pname) {
|
|
319
274
|
this._glCheckError('getSyncParameter');
|
|
320
|
-
const getSyncParameter = this._getMethod('getSyncParameter');
|
|
321
275
|
const value = sync.native;
|
|
322
|
-
return getSyncParameter(value, pname);
|
|
276
|
+
return this.native.getSyncParameter(value, pname);
|
|
323
277
|
}
|
|
324
278
|
getTransformFeedbackVarying(program, index) {
|
|
325
279
|
this._glCheckError('getTransformFeedbackVarying');
|
|
326
280
|
const value = program.native;
|
|
327
|
-
const
|
|
328
|
-
const info = getTransformFeedbackVarying(value, index);
|
|
281
|
+
const info = this.native.getTransformFeedbackVarying(value, index);
|
|
329
282
|
if (info) {
|
|
330
283
|
return new WebGLActiveInfo(info);
|
|
331
284
|
}
|
|
@@ -333,306 +286,265 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
|
|
|
333
286
|
}
|
|
334
287
|
getUniformBlockIndex(program, uniformBlockName) {
|
|
335
288
|
this._glCheckError('getUniformBlockIndex');
|
|
336
|
-
const getUniformBlockIndex = this._getMethod('getUniformBlockIndex');
|
|
337
289
|
const value = program.native;
|
|
338
|
-
return getUniformBlockIndex(value, uniformBlockName);
|
|
290
|
+
return this.native.getUniformBlockIndex(value, uniformBlockName);
|
|
339
291
|
}
|
|
340
292
|
getUniformIndices(program, uniformNames) {
|
|
341
293
|
this._glCheckError('getUniformIndices');
|
|
342
|
-
const getUniformIndices = this._getMethod('getUniformIndices');
|
|
343
294
|
const value = program.native;
|
|
344
|
-
return getUniformIndices(value, uniformNames);
|
|
295
|
+
return this.native.getUniformIndices(value, uniformNames);
|
|
345
296
|
}
|
|
346
297
|
invalidateFramebuffer(target, attachments) {
|
|
347
298
|
this._glCheckError('invalidateFramebuffer');
|
|
348
|
-
|
|
349
|
-
invalidateFramebuffer(target, attachments);
|
|
299
|
+
this.native.invalidateFramebuffer(target, attachments);
|
|
350
300
|
}
|
|
351
301
|
invalidateSubFramebuffer(target, attachments, x, y, width, height) {
|
|
352
302
|
this._glCheckError('invalidateSubFramebuffer');
|
|
353
|
-
|
|
354
|
-
invalidateSubFramebuffer(target, attachments, x, y, width, height);
|
|
303
|
+
this.native.invalidateSubFramebuffer(target, attachments, x, y, width, height);
|
|
355
304
|
}
|
|
356
305
|
isQuery(query) {
|
|
357
306
|
this._glCheckError('isQuery');
|
|
358
|
-
const isQuery = this._getMethod('isQuery');
|
|
359
307
|
const value = query.native;
|
|
360
|
-
return isQuery(value);
|
|
308
|
+
return this.native.isQuery(value);
|
|
361
309
|
}
|
|
362
310
|
isSampler(sampler) {
|
|
363
311
|
this._glCheckError('isSampler');
|
|
364
|
-
const isSampler = this._getMethod('isSampler');
|
|
365
312
|
const value = sampler.native;
|
|
366
|
-
return isSampler(value);
|
|
313
|
+
return this.native.isSampler(value);
|
|
367
314
|
}
|
|
368
315
|
isSync(sync) {
|
|
369
316
|
this._glCheckError('isSync');
|
|
370
|
-
const isSync = this._getMethod('isSync');
|
|
371
317
|
const value = sync.native;
|
|
372
|
-
return isSync(value);
|
|
318
|
+
return this.native.isSync(value);
|
|
373
319
|
}
|
|
374
320
|
isTransformFeedback(transformFeedback) {
|
|
375
321
|
this._glCheckError('isTransformFeedback');
|
|
376
|
-
const isTransformFeedback = this._getMethod('isTransformFeedback');
|
|
377
322
|
const value = transformFeedback.native;
|
|
378
|
-
return isTransformFeedback(value);
|
|
323
|
+
return this.native.isTransformFeedback(value);
|
|
379
324
|
}
|
|
380
325
|
isVertexArray(vertexArray) {
|
|
381
326
|
this._glCheckError('isVertexArray');
|
|
382
|
-
const isVertexArray = this._getMethod('isVertexArray');
|
|
383
327
|
const value = vertexArray.native;
|
|
384
|
-
return isVertexArray(value);
|
|
328
|
+
return this.native.isVertexArray(value);
|
|
385
329
|
}
|
|
386
330
|
pauseTransformFeedback() {
|
|
387
331
|
this._glCheckError('pauseTransformFeedback');
|
|
388
|
-
|
|
389
|
-
pauseTransformFeedback();
|
|
332
|
+
this.native.pauseTransformFeedback();
|
|
390
333
|
}
|
|
391
334
|
readBuffer(src) {
|
|
392
335
|
this._glCheckError('readBuffer');
|
|
393
|
-
|
|
394
|
-
readBuffer(src);
|
|
336
|
+
this.native.readBuffer(src);
|
|
395
337
|
}
|
|
396
338
|
renderbufferStorageMultisample(target, samples, internalFormat, width, height) {
|
|
397
339
|
this._glCheckError('renderbufferStorageMultisample');
|
|
398
|
-
|
|
399
|
-
renderbufferStorageMultisample(target, samples, internalFormat, width, height);
|
|
340
|
+
this.native.renderbufferStorageMultisample(target, samples, internalFormat, width, height);
|
|
400
341
|
}
|
|
401
342
|
resumeTransformFeedback() {
|
|
402
343
|
this._glCheckError('resumeTransformFeedback');
|
|
403
|
-
|
|
404
|
-
resumeTransformFeedback();
|
|
344
|
+
this.native.resumeTransformFeedback();
|
|
405
345
|
}
|
|
406
346
|
samplerParameterf(sampler, pname, param) {
|
|
407
347
|
this._glCheckError('samplerParameterf');
|
|
408
|
-
const samplerParameterf = this._getMethod('samplerParameterf');
|
|
409
348
|
const value = sampler.native;
|
|
410
|
-
samplerParameterf(value, pname, param);
|
|
349
|
+
this.native.samplerParameterf(value, pname, param);
|
|
411
350
|
}
|
|
412
351
|
/* Uniforms */
|
|
413
352
|
/* Sync objects */
|
|
414
353
|
samplerParameteri(sampler, pname, param) {
|
|
415
354
|
this._glCheckError('samplerParameteri');
|
|
416
|
-
const samplerParameteri = this._getMethod('samplerParameteri');
|
|
417
355
|
const value = sampler.native;
|
|
418
|
-
samplerParameteri(value, pname, param);
|
|
356
|
+
this.native.samplerParameteri(value, pname, param);
|
|
419
357
|
}
|
|
420
358
|
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source) {
|
|
421
359
|
this._glCheckError('texImage3D');
|
|
422
|
-
const texImage3D = this._getMethod('texImage3D');
|
|
423
360
|
if (typeof source === 'number') {
|
|
424
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
|
|
361
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
|
|
425
362
|
}
|
|
426
363
|
else if (source && source.buffer) {
|
|
427
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
|
|
364
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
|
|
428
365
|
}
|
|
429
366
|
else if (source instanceof android.graphics.Bitmap) {
|
|
430
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
|
|
367
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
|
|
431
368
|
}
|
|
432
369
|
else if (source instanceof ImageSource) {
|
|
433
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.android);
|
|
370
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.android);
|
|
434
371
|
}
|
|
435
372
|
else if (source instanceof ImageAsset) {
|
|
436
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
|
|
373
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
|
|
437
374
|
}
|
|
438
375
|
else if (source instanceof ImageBitmap) {
|
|
439
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
|
|
376
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
|
|
440
377
|
}
|
|
441
378
|
else if (source && typeof source.tagName === 'string' && (source.tagName === 'IMG' || source.tagName === 'IMAGE')) {
|
|
442
379
|
if (source._imageSource instanceof ImageSource) {
|
|
443
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._imageSource.android);
|
|
380
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._imageSource.android);
|
|
444
381
|
}
|
|
445
382
|
else if (source._image instanceof android.graphics.Bitmap) {
|
|
446
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._image);
|
|
383
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._image);
|
|
447
384
|
}
|
|
448
385
|
else if (source._asset instanceof ImageAsset) {
|
|
449
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._asset.native);
|
|
386
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._asset.native);
|
|
450
387
|
}
|
|
451
388
|
else if (typeof source.src === 'string') {
|
|
452
389
|
const result = ImageSource.fromFileSync(source.src);
|
|
453
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, result ? result.android : null);
|
|
390
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, result ? result.android : null);
|
|
454
391
|
}
|
|
455
392
|
}
|
|
456
393
|
else if (source && typeof source.tagName === 'string' && source.tagName === 'CANVAS' && source._canvas instanceof Canvas) {
|
|
457
|
-
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._canvas.native);
|
|
394
|
+
this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._canvas.native);
|
|
458
395
|
}
|
|
459
396
|
}
|
|
460
397
|
texStorage2D(target, levels, internalformat, width, height) {
|
|
461
398
|
this._glCheckError('texStorage2D');
|
|
462
|
-
|
|
463
|
-
texStorage2D(target, levels, internalformat, width, height);
|
|
399
|
+
this.native.texStorage2D(target, levels, internalformat, width, height);
|
|
464
400
|
}
|
|
465
401
|
texStorage3D(target, levels, internalformat, width, height, depth) {
|
|
466
402
|
this._glCheckError('texStorage3D');
|
|
467
|
-
|
|
468
|
-
texStorage3D(target, levels, internalformat, width, height, depth);
|
|
403
|
+
this.native.texStorage3D(target, levels, internalformat, width, height, depth);
|
|
469
404
|
}
|
|
470
405
|
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset = 0) {
|
|
471
406
|
this._glCheckError('texSubImage3D');
|
|
472
|
-
const texSubImage3D = this._getMethod('texSubImage3D');
|
|
473
407
|
if (typeof srcData === 'number') {
|
|
474
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
|
|
408
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
|
|
475
409
|
}
|
|
476
410
|
else if (srcData && srcData.buffer) {
|
|
477
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset);
|
|
411
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset);
|
|
478
412
|
}
|
|
479
413
|
else if (srcData instanceof android.graphics.Bitmap) {
|
|
480
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
|
|
414
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
|
|
481
415
|
}
|
|
482
416
|
else if (srcData instanceof ImageSource) {
|
|
483
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.android);
|
|
417
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.android);
|
|
484
418
|
}
|
|
485
419
|
else if (srcData instanceof ImageAsset) {
|
|
486
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
|
|
420
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
|
|
487
421
|
}
|
|
488
422
|
else if (srcData instanceof ImageBitmap) {
|
|
489
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
|
|
423
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
|
|
490
424
|
}
|
|
491
425
|
else if (srcData && typeof srcData.tagName === 'string' && (srcData.tagName === 'IMG' || srcData.tagName === 'IMAGE')) {
|
|
492
426
|
if (srcData._imageSource instanceof ImageSource) {
|
|
493
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._imageSource.android);
|
|
427
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._imageSource.android);
|
|
494
428
|
}
|
|
495
429
|
else if (srcData._image instanceof android.graphics.Bitmap) {
|
|
496
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._image);
|
|
430
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._image);
|
|
497
431
|
}
|
|
498
432
|
else if (srcData._asset instanceof ImageAsset) {
|
|
499
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._asset.native);
|
|
433
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._asset.native);
|
|
500
434
|
}
|
|
501
435
|
else if (typeof srcData.src === 'string') {
|
|
502
436
|
const result = ImageSource.fromFileSync(srcData.src);
|
|
503
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, result ? result.android : null);
|
|
437
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, result ? result.android : null);
|
|
504
438
|
}
|
|
505
439
|
}
|
|
506
440
|
else if (srcData && typeof srcData.tagName === 'string' && srcData.tagName === 'CANVAS' && srcData._canvas instanceof TNSCanvas) {
|
|
507
|
-
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._canvas.native);
|
|
441
|
+
this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._canvas.native);
|
|
508
442
|
}
|
|
509
443
|
}
|
|
510
444
|
transformFeedbackVaryings(program, varyings, bufferMode) {
|
|
511
445
|
this._glCheckError('transformFeedbackVaryings');
|
|
512
|
-
const transformFeedbackVaryings = this._getMethod('transformFeedbackVaryings');
|
|
513
446
|
const value = program.native;
|
|
514
|
-
transformFeedbackVaryings(value, varyings, bufferMode);
|
|
447
|
+
this.native.transformFeedbackVaryings(value, varyings, bufferMode);
|
|
515
448
|
}
|
|
516
449
|
uniform1ui(location, v0) {
|
|
517
450
|
this._glCheckError('uniform1ui');
|
|
518
451
|
const value = location.native;
|
|
519
|
-
|
|
520
|
-
uniform1ui(value, v0);
|
|
452
|
+
this.native.uniform1ui(value, v0);
|
|
521
453
|
}
|
|
522
454
|
uniform1uiv(location, data) {
|
|
523
455
|
this._glCheckError('uniform1uiv');
|
|
524
|
-
const uniform1uiv = this._getMethod('uniform1uiv');
|
|
525
456
|
const value = location.native;
|
|
526
|
-
uniform1uiv(value, data);
|
|
457
|
+
this.native.uniform1uiv(value, data);
|
|
527
458
|
}
|
|
528
459
|
uniform2ui(location, v0, v1) {
|
|
529
460
|
this._glCheckError('uniform2ui');
|
|
530
|
-
const uniform2ui = this._getMethod('uniform2ui');
|
|
531
461
|
const value = location.native;
|
|
532
|
-
uniform2ui(value, v0, v1);
|
|
462
|
+
this.native.uniform2ui(value, v0, v1);
|
|
533
463
|
}
|
|
534
464
|
uniform2uiv(location, data) {
|
|
535
465
|
this._glCheckError('uniform2uiv');
|
|
536
|
-
const uniform2uiv = this._getMethod('uniform2uiv');
|
|
537
466
|
const value = location.native;
|
|
538
|
-
uniform2uiv(value, data);
|
|
467
|
+
this.native.uniform2uiv(value, data);
|
|
539
468
|
}
|
|
540
469
|
/* Sync objects */
|
|
541
470
|
/* Miscellaneous constants */
|
|
542
471
|
uniform3ui(location, v0, v1, v2) {
|
|
543
472
|
this._glCheckError('uniform3ui');
|
|
544
|
-
const uniform3ui = this._getMethod('uniform3ui');
|
|
545
473
|
const value = location.native;
|
|
546
|
-
uniform3ui(value, v0, v1, v2);
|
|
474
|
+
this.native.uniform3ui(value, v0, v1, v2);
|
|
547
475
|
}
|
|
548
476
|
uniform3uiv(location, data) {
|
|
549
477
|
this._glCheckError('uniform3uiv');
|
|
550
|
-
const uniform3uiv = this._getMethod('uniform3uiv');
|
|
551
478
|
const value = location.native;
|
|
552
|
-
uniform3uiv(value, data);
|
|
479
|
+
this.native.uniform3uiv(value, data);
|
|
553
480
|
}
|
|
554
481
|
uniform4ui(location, v0, v1, v2, v3) {
|
|
555
482
|
this._glCheckError('uniform4ui');
|
|
556
|
-
const uniform4ui = this._getMethod('uniform4ui');
|
|
557
483
|
const value = location.native;
|
|
558
|
-
uniform4ui(value, v0, v1, v2, v3);
|
|
484
|
+
this.native.uniform4ui(value, v0, v1, v2, v3);
|
|
559
485
|
}
|
|
560
486
|
uniform4uiv(location, data) {
|
|
561
487
|
this._glCheckError('uniform4uiv');
|
|
562
|
-
const uniform4uiv = this._getMethod('uniform4uiv');
|
|
563
488
|
const value = location.native;
|
|
564
|
-
uniform4uiv(value, data);
|
|
489
|
+
this.native.uniform4uiv(value, data);
|
|
565
490
|
}
|
|
566
491
|
uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding) {
|
|
567
492
|
this._glCheckError('uniformBlockBinding');
|
|
568
|
-
const uniformBlockBindingFunc = this._getMethod('uniformBlockBinding');
|
|
569
493
|
const value = program.native;
|
|
570
|
-
|
|
494
|
+
this.native.uniformBlockBinding(value, uniformBlockIndex, uniformBlockBinding);
|
|
571
495
|
}
|
|
572
496
|
uniformMatrix2x3fv(location, transpose, data) {
|
|
573
497
|
this._glCheckError('uniformMatrix2x3fv');
|
|
574
|
-
const uniformMatrix2x3fv = this._getMethod('uniformMatrix2x3fv');
|
|
575
498
|
const value = location.native;
|
|
576
|
-
uniformMatrix2x3fv(value, transpose, data);
|
|
499
|
+
this.native.uniformMatrix2x3fv(value, transpose, data);
|
|
577
500
|
}
|
|
578
501
|
uniformMatrix2x4fv(location, transpose, data) {
|
|
579
502
|
this._glCheckError('uniformMatrix2x4fv');
|
|
580
|
-
const uniformMatrix2x4fv = this._getMethod('uniformMatrix2x4fv');
|
|
581
503
|
const value = location.native;
|
|
582
|
-
uniformMatrix2x4fv(value, transpose, data);
|
|
504
|
+
this.native.uniformMatrix2x4fv(value, transpose, data);
|
|
583
505
|
}
|
|
584
506
|
uniformMatrix3x2fv(location, transpose, data) {
|
|
585
507
|
this._glCheckError('uniformMatrix3x2fv');
|
|
586
|
-
const uniformMatrix3x2fv = this._getMethod('uniformMatrix3x2fv');
|
|
587
508
|
const value = location.native;
|
|
588
|
-
uniformMatrix3x2fv(value, transpose, data);
|
|
509
|
+
this.native.uniformMatrix3x2fv(value, transpose, data);
|
|
589
510
|
}
|
|
590
511
|
uniformMatrix3x4fv(location, transpose, data) {
|
|
591
512
|
this._glCheckError('uniformMatrix3x4fv');
|
|
592
|
-
const uniformMatrix3x4fv = this._getMethod('uniformMatrix3x4fv');
|
|
593
513
|
const value = location.native;
|
|
594
|
-
uniformMatrix3x4fv(value, transpose, data);
|
|
514
|
+
this.native.uniformMatrix3x4fv(value, transpose, data);
|
|
595
515
|
}
|
|
596
516
|
uniformMatrix4x2fv(location, transpose, data) {
|
|
597
517
|
this._glCheckError('uniformMatrix4x2fv');
|
|
598
|
-
const uniformMatrix4x2fv = this._getMethod('uniformMatrix4x2fv');
|
|
599
518
|
const value = location.native;
|
|
600
|
-
uniformMatrix4x2fv(value, transpose, data);
|
|
519
|
+
this.native.uniformMatrix4x2fv(value, transpose, data);
|
|
601
520
|
}
|
|
602
521
|
uniformMatrix4x3fv(location, transpose, data) {
|
|
603
522
|
this._glCheckError('uniformMatrix4x3fv');
|
|
604
|
-
const uniformMatrix4x3fv = this._getMethod('uniformMatrix4x3fv');
|
|
605
523
|
const value = location.native;
|
|
606
|
-
uniformMatrix4x3fv(value, transpose, data);
|
|
524
|
+
this.native.uniformMatrix4x3fv(value, transpose, data);
|
|
607
525
|
}
|
|
608
526
|
vertexAttribDivisor(index, divisor) {
|
|
609
527
|
this._glCheckError('vertexAttribDivisor');
|
|
610
|
-
|
|
611
|
-
vertexAttribDivisor(index, divisor);
|
|
528
|
+
this.native.vertexAttribDivisor(index, divisor);
|
|
612
529
|
}
|
|
613
530
|
vertexAttribI4i(index, v0, v1, v2, v3) {
|
|
614
531
|
this._glCheckError('vertexAttribI4i');
|
|
615
|
-
|
|
616
|
-
vertexAttribI4i(index, v0, v1, v2, v3);
|
|
532
|
+
this.native.vertexAttribI4i(index, v0, v1, v2, v3);
|
|
617
533
|
}
|
|
618
534
|
vertexAttribI4iv(index, value) {
|
|
619
535
|
this._glCheckError('vertexAttribI4iv');
|
|
620
|
-
|
|
621
|
-
vertexAttribI4iv(index, value);
|
|
536
|
+
this.native.vertexAttribI4iv(index, value);
|
|
622
537
|
}
|
|
623
538
|
vertexAttribI4ui(index, v0, v1, v2, v3) {
|
|
624
539
|
this._glCheckError('vertexAttribI4ui');
|
|
625
|
-
|
|
626
|
-
vertexAttribI4ui(index, v0, v1, v2, v3);
|
|
540
|
+
this.native.vertexAttribI4ui(index, v0, v1, v2, v3);
|
|
627
541
|
}
|
|
628
542
|
vertexAttribI4uiv(index, value) {
|
|
629
543
|
this._glCheckError('vertexAttribI4uiv');
|
|
630
|
-
|
|
631
|
-
vertexAttribI4uiv(index, value);
|
|
544
|
+
this.native.vertexAttribI4uiv(index, value);
|
|
632
545
|
}
|
|
633
546
|
}
|
|
634
547
|
(() => {
|
|
635
548
|
Helpers.initialize();
|
|
636
|
-
ctor = global.CanvasJSIModule.createWebGL2Context;
|
|
637
549
|
})();
|
|
638
550
|
//# sourceMappingURL=index.js.map
|