@nativescript/canvas 2.0.0-alpha.9 → 2.0.0-beta.1
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 +213 -25
- package/Canvas/common.js +705 -452
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +10 -1
- package/Canvas/index.android.js +155 -52
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +8 -0
- package/Canvas/index.ios.d.ts +7 -4
- package/Canvas/index.ios.js +159 -106
- 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 +11 -5
- package/Canvas2D/CanvasRenderingContext2D/index.js +183 -245
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +5 -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 +32 -42
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Dom.js +7 -2
- package/Dom/Dom.js.map +1 -1
- package/Dom/Group.d.ts +7 -7
- package/Dom/Group.js +47 -21
- package/Dom/Group.js.map +1 -1
- package/Dom/Image.js +2 -3
- package/Dom/Image.js.map +1 -1
- package/Dom/Paint.d.ts +1 -0
- package/Dom/Paint.js +10 -5
- package/Dom/Paint.js.map +1 -1
- package/Dom/Text.js +3 -4
- package/Dom/Text.js.map +1 -1
- package/Dom/shapes/Circle.js +2 -3
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Path.js +1 -0
- package/Dom/shapes/Path.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/Dom/shapes/Rect.js +2 -2
- package/Dom/shapes/Rect.js.map +1 -1
- package/Dom/shapes/RoundedRect.js +8 -9
- package/Dom/shapes/RoundedRect.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 -33
- 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 +1 -3
- package/WebGL/WebGLRenderingContext/common.js +3 -13
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
- package/WebGL/WebGLRenderingContext/index.js +354 -728
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +116 -285
- 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/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +132 -68
- 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 +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2808 -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 +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -25
- 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 +43 -25
- 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 +264 -136
- 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 +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2808 -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 +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -25
- 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 +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -25
- 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 +43 -25
- 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 +5 -2
- 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 +1593 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -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 +336 -38
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
- package/platforms/ios/src/cpp/JSICallback.h +83 -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/ObjectWrapperImpl.h +33 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
- package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
- package/platforms/ios/src/cpp/PerIsolateData.h +54 -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 +193 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
- package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
- package/platforms/ios/src/cpp/URLImpl.h +121 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2837 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1334 -21
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -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 +42 -7
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +136 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -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 +26 -6
- 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 +26 -6
- 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 +41 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
- 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 +42 -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 +110 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -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 +38 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -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 -13
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4564 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -342
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/{pods → src-native/ios}/NativeScript.podspec +12 -25
- 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 -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 -4543
- package/pods/Headers/jsi/decorator.h +0 -770
- package/pods/Headers/jsi/instrumentation.h +0 -117
- package/pods/Headers/jsi/jsi-inl.h +0 -338
- package/pods/Headers/jsi/jsi.h +0 -1571
- package/pods/Headers/jsi/jsilib.h +0 -59
- package/pods/Headers/jsi/threadsafe.h +0 -79
- package/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
- package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/pods/Headers/v8runtime/V8Runtime.h +0 -240
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
- /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
- /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
|
@@ -4,15 +4,62 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "rust/cxx.h"
|
|
8
|
-
#import "NativeScript/JSIRuntime.h"
|
|
9
7
|
#include "gl.h"
|
|
10
8
|
#include <vector>
|
|
9
|
+
#include "Helpers.h"
|
|
10
|
+
#include "Common.h"
|
|
11
|
+
#include "Caches.h"
|
|
12
|
+
#include "ObjectWrapperImpl.h"
|
|
13
|
+
class WEBGL_compressed_texture_s3tcImpl: ObjectWrapperImpl {
|
|
14
|
+
public:
|
|
15
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
16
|
+
auto cache = Caches::Get(isolate);
|
|
17
|
+
auto ctor = cache->WEBGL_compressed_texture_s3tcTmpl.get();
|
|
18
|
+
if (ctor != nullptr) {
|
|
19
|
+
return ctor->Get(isolate);
|
|
20
|
+
}
|
|
11
21
|
|
|
12
|
-
|
|
22
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
23
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
24
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WEBGL_compressed_texture_s3tc"));
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
27
|
+
tmpl->SetInternalFieldCount(2);
|
|
16
28
|
|
|
17
|
-
|
|
29
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_RGB_S3TC_DXT1_EXT"),
|
|
30
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_RGB_S3TC_DXT1_EXT));
|
|
31
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_RGBA_S3TC_DXT1_EXT"),
|
|
32
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT));
|
|
33
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_RGBA_S3TC_DXT3_EXT"),
|
|
34
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_RGBA_S3TC_DXT3_EXT));
|
|
35
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_RGBA_S3TC_DXT5_EXT"),
|
|
36
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT));
|
|
37
|
+
|
|
38
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
39
|
+
ConvertToV8String(isolate, "WEBGL_compressed_texture_s3tc"));
|
|
40
|
+
|
|
41
|
+
cache->WEBGL_compressed_texture_s3tcTmpl =
|
|
42
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
43
|
+
return ctorTmpl;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static v8::Local<v8::Object>
|
|
47
|
+
NewInstance(v8::Isolate *isolate, WEBGL_compressed_texture_s3tcImpl *textureS3Tc) {
|
|
48
|
+
auto context = isolate->GetCurrentContext();
|
|
49
|
+
v8::EscapableHandleScope scope(isolate);
|
|
50
|
+
auto object = WEBGL_compressed_texture_s3tcImpl::GetCtor(isolate)->GetFunction(
|
|
51
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
52
|
+
SetNativeType( object, NativeType::WEBGL_compressed_texture_s3tc);
|
|
53
|
+
object->SetAlignedPointerInInternalField(0, textureS3Tc);
|
|
54
|
+
textureS3Tc->BindFinalizer(isolate, object);
|
|
55
|
+
return scope.Escape(object);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static WEBGL_compressed_texture_s3tcImpl *GetPointer(const v8::Local<v8::Object> &object) {
|
|
59
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
60
|
+
if (ptr == nullptr) {
|
|
61
|
+
return nullptr;
|
|
62
|
+
}
|
|
63
|
+
return static_cast<WEBGL_compressed_texture_s3tcImpl *>(ptr);
|
|
64
|
+
}
|
|
18
65
|
};
|
|
@@ -4,16 +4,69 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "rust/cxx.h"
|
|
8
|
-
#import "NativeScript/JSIRuntime.h"
|
|
9
7
|
#include "gl.h"
|
|
10
8
|
#include <vector>
|
|
9
|
+
#include "Caches.h"
|
|
10
|
+
#include "Common.h"
|
|
11
|
+
#include "Helpers.h"
|
|
12
|
+
#include "ObjectWrapperImpl.h"
|
|
13
|
+
class WEBGL_compressed_texture_s3tc_srgbImpl: ObjectWrapperImpl {
|
|
14
|
+
public:
|
|
15
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
16
|
+
auto cache = Caches::Get(isolate);
|
|
17
|
+
auto ctor = cache->WEBGL_compressed_texture_s3tc_srgbTmpl.get();
|
|
18
|
+
if (ctor != nullptr) {
|
|
19
|
+
return ctor->Get(isolate);
|
|
20
|
+
}
|
|
11
21
|
|
|
12
|
-
|
|
22
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
23
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
24
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WEBGL_compressed_texture_s3tc_srgb"));
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
27
|
+
tmpl->SetInternalFieldCount(2);
|
|
16
28
|
|
|
17
|
-
|
|
29
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_SRGB_S3TC_DXT1_EXT"),
|
|
30
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_SRGB_S3TC_DXT1_EXT));
|
|
31
|
+
|
|
32
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT"),
|
|
33
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT));
|
|
34
|
+
|
|
35
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT"),
|
|
36
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT));
|
|
37
|
+
|
|
38
|
+
tmpl->Set(ConvertToV8String(isolate, "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"),
|
|
39
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT));
|
|
40
|
+
|
|
41
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
42
|
+
ConvertToV8String(isolate, "WEBGL_compressed_texture_s3tc_srgb"));
|
|
43
|
+
|
|
44
|
+
cache->WEBGL_compressed_texture_s3tc_srgbTmpl =
|
|
45
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
46
|
+
return ctorTmpl;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static v8::Local<v8::Object>
|
|
50
|
+
NewInstance(v8::Isolate *isolate,
|
|
51
|
+
WEBGL_compressed_texture_s3tc_srgbImpl *compressedTextureS3TcSrgb) {
|
|
52
|
+
auto context = isolate->GetCurrentContext();
|
|
53
|
+
v8::EscapableHandleScope scope(isolate);
|
|
54
|
+
auto object = WEBGL_compressed_texture_s3tc_srgbImpl::GetCtor(isolate)->GetFunction(
|
|
55
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
56
|
+
SetNativeType( object, NativeType::WEBGL_compressed_texture_s3tc_srgb);
|
|
57
|
+
object->SetAlignedPointerInInternalField(0, compressedTextureS3TcSrgb);
|
|
58
|
+
object->Set(context, ConvertToV8String(isolate, "ext_name"),
|
|
59
|
+
ConvertToV8String(isolate, "WEBGL_compressed_texture_s3tc_srgb"));
|
|
60
|
+
compressedTextureS3TcSrgb->BindFinalizer(isolate, object);
|
|
61
|
+
return scope.Escape(object);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static WEBGL_compressed_texture_s3tc_srgbImpl *GetPointer(const v8::Local<v8::Object> &object) {
|
|
65
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
66
|
+
if (ptr == nullptr) {
|
|
67
|
+
return nullptr;
|
|
68
|
+
}
|
|
69
|
+
return static_cast<WEBGL_compressed_texture_s3tc_srgbImpl *>(ptr);
|
|
70
|
+
}
|
|
18
71
|
};
|
|
19
72
|
|
|
@@ -4,16 +4,56 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma
|
|
6
6
|
|
|
7
|
-
#include "rust/cxx.h"
|
|
8
|
-
#import "NativeScript/JSIRuntime.h"
|
|
9
7
|
#include "gl.h"
|
|
10
8
|
#include <vector>
|
|
9
|
+
#include "Helpers.h"
|
|
10
|
+
#include "Caches.h"
|
|
11
|
+
#include "Common.h"
|
|
12
|
+
#include "ObjectWrapperImpl.h"
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
class WEBGL_depth_textureImpl: ObjectWrapperImpl {
|
|
15
|
+
public:
|
|
16
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
17
|
+
auto cache = Caches::Get(isolate);
|
|
18
|
+
auto ctor = cache->WEBGL_depth_textureTmpl.get();
|
|
19
|
+
if (ctor != nullptr) {
|
|
20
|
+
return ctor->Get(isolate);
|
|
21
|
+
}
|
|
13
22
|
|
|
23
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
24
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
25
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WEBGL_depth_texture"));
|
|
14
26
|
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
28
|
+
tmpl->SetInternalFieldCount(2);
|
|
17
29
|
|
|
18
|
-
|
|
30
|
+
tmpl->Set(ConvertToV8String(isolate, "UNSIGNED_INT_24_8_WEBGL"), v8::Integer::NewFromUnsigned(isolate, 0x84FA));
|
|
31
|
+
|
|
32
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
33
|
+
ConvertToV8String(isolate, "WEBGL_depth_texture"));
|
|
34
|
+
|
|
35
|
+
cache->WEBGL_depth_textureTmpl =
|
|
36
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
37
|
+
return ctorTmpl;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static v8::Local<v8::Object>
|
|
41
|
+
NewInstance(v8::Isolate *isolate, WEBGL_depth_textureImpl *depthTexture) {
|
|
42
|
+
auto context = isolate->GetCurrentContext();
|
|
43
|
+
v8::EscapableHandleScope scope(isolate);
|
|
44
|
+
auto object = WEBGL_depth_textureImpl::GetCtor(isolate)->GetFunction(
|
|
45
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
46
|
+
SetNativeType( object, NativeType::WEBGL_depth_texture);
|
|
47
|
+
object->SetAlignedPointerInInternalField(0, depthTexture);
|
|
48
|
+
depthTexture->BindFinalizer(isolate, object);
|
|
49
|
+
return scope.Escape(object);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
static WEBGL_depth_textureImpl *GetPointer(const v8::Local<v8::Object> &object) {
|
|
53
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
54
|
+
if (ptr == nullptr) {
|
|
55
|
+
return nullptr;
|
|
56
|
+
}
|
|
57
|
+
return static_cast<WEBGL_depth_textureImpl *>(ptr);
|
|
58
|
+
}
|
|
19
59
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 29/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "WEBGL_draw_buffersImpl.h"
|
|
6
|
+
|
|
7
|
+
WEBGL_draw_buffersImpl::WEBGL_draw_buffersImpl(WEBGL_draw_buffers *buffers) : buffers_(buffers) {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
v8::CFunction WEBGL_draw_buffersImpl::fast_draw_buffers_webgl(
|
|
12
|
+
v8::CFunction::Make(WEBGL_draw_buffersImpl::FastDrawBuffersWEBGL));
|
|
13
|
+
|
|
14
|
+
void WEBGL_draw_buffersImpl::DrawBuffersWEBGL(
|
|
15
|
+
const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
16
|
+
WEBGL_draw_buffersImpl *ptr = GetPointer(args.This());
|
|
17
|
+
if (ptr == nullptr) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
auto isolate = args.GetIsolate();
|
|
21
|
+
auto context = isolate->GetCurrentContext();
|
|
22
|
+
|
|
23
|
+
auto value = args[0];
|
|
24
|
+
if (value->IsArray()) {
|
|
25
|
+
auto buffers = value.As<v8::Array>();
|
|
26
|
+
auto len = buffers->Length();
|
|
27
|
+
std::vector<uint32_t> buf;
|
|
28
|
+
buf.reserve(len);
|
|
29
|
+
for (int j = 0; j < len; ++j) {
|
|
30
|
+
auto item = buffers->Get(context, j).ToLocalChecked();
|
|
31
|
+
buf.push_back(item->Uint32Value(context).ToChecked());
|
|
32
|
+
}
|
|
33
|
+
canvas_native_webgl_draw_buffers_draw_buffers_webgl(buf.data(), buf.size(),
|
|
34
|
+
ptr->GetDrawBuffers());
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|
|
@@ -4,28 +4,171 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
8
|
-
|
|
9
|
-
#include "rust/cxx.h"
|
|
10
|
-
#import "NativeScript/JSIRuntime.h"
|
|
11
7
|
#include "gl.h"
|
|
12
8
|
#include <vector>
|
|
9
|
+
#include "Common.h"
|
|
10
|
+
#include "Caches.h"
|
|
11
|
+
#include "Helpers.h"
|
|
12
|
+
#include "ObjectWrapperImpl.h"
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
using namespace org::nativescript::canvas;
|
|
16
|
-
|
|
17
|
-
class JSI_EXPORT WEBGL_draw_buffersImpl : public jsi::HostObject {
|
|
14
|
+
class WEBGL_draw_buffersImpl : ObjectWrapperImpl {
|
|
18
15
|
public:
|
|
19
|
-
WEBGL_draw_buffersImpl(
|
|
16
|
+
WEBGL_draw_buffersImpl(WEBGL_draw_buffers *buffers);
|
|
17
|
+
|
|
18
|
+
static v8::CFunction fast_draw_buffers_webgl;
|
|
19
|
+
|
|
20
|
+
~WEBGL_draw_buffersImpl() {
|
|
21
|
+
if (this->buffers_ != nullptr) {
|
|
22
|
+
canvas_native_webgl_WEBGL_draw_buffers_destroy(this->buffers_);
|
|
23
|
+
this->buffers_ = nullptr;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
28
|
+
auto cache = Caches::Get(isolate);
|
|
29
|
+
auto ctor = cache->WEBGL_draw_buffersTmpl.get();
|
|
30
|
+
if (ctor != nullptr) {
|
|
31
|
+
return ctor->Get(isolate);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
35
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
36
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WEBGL_draw_buffers"));
|
|
37
|
+
|
|
38
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
39
|
+
tmpl->SetInternalFieldCount(2);
|
|
40
|
+
|
|
41
|
+
SetFastMethod(isolate, tmpl, "drawBuffersWEBGL", DrawBuffersWEBGL,
|
|
42
|
+
&fast_draw_buffers_webgl, v8::Local<v8::Value>());
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT0_WEBGL"),
|
|
46
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT0_EXT));
|
|
47
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT1_WEBGL"),
|
|
48
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT1_EXT));
|
|
49
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT2_WEBGL"),
|
|
50
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT2_EXT));
|
|
51
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT3_WEBGL"),
|
|
52
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT3_EXT));
|
|
53
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT4_WEBGL"),
|
|
54
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT4_EXT));
|
|
55
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT5_WEBGL"),
|
|
56
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT5_EXT));
|
|
57
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT6_WEBGL"),
|
|
58
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT6_EXT));
|
|
59
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT7_WEBGL"),
|
|
60
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT7_EXT));
|
|
61
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT8_WEBGL"),
|
|
62
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT8_EXT));
|
|
63
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT9_WEBGL"),
|
|
64
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT9_EXT));
|
|
65
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT10_WEBGL"),
|
|
66
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT10_EXT));
|
|
67
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT11_WEBGL"),
|
|
68
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT11_EXT));
|
|
69
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT12_WEBGL"),
|
|
70
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT12_EXT));
|
|
71
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT13_WEBGL"),
|
|
72
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT13_EXT));
|
|
73
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT14_WEBGL"),
|
|
74
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT14_EXT));
|
|
75
|
+
tmpl->Set(ConvertToV8String(isolate, "COLOR_ATTACHMENT15_WEBGL"),
|
|
76
|
+
v8::Integer::NewFromUnsigned(isolate, GL_COLOR_ATTACHMENT15_EXT));
|
|
77
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER0_WEBGL"),
|
|
78
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER0_EXT));
|
|
79
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER1_WEBGL"),
|
|
80
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER1_EXT));
|
|
81
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER2_WEBGL"),
|
|
82
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER2_EXT));
|
|
83
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER3_WEBGL"),
|
|
84
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER3_EXT));
|
|
85
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER4_WEBGL"),
|
|
86
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER4_EXT));
|
|
87
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER5_WEBGL"),
|
|
88
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER5_EXT));
|
|
89
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER6_WEBGL"),
|
|
90
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER6_EXT));
|
|
91
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER7_WEBGL"),
|
|
92
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER7_EXT));
|
|
93
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER8_WEBGL"),
|
|
94
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER8_EXT));
|
|
95
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER9_WEBGL"),
|
|
96
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER9_EXT));
|
|
97
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER10_WEBGL"),
|
|
98
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER10_EXT));
|
|
99
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER11_WEBGL"),
|
|
100
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER11_EXT));
|
|
101
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER12_WEBGL"),
|
|
102
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER12_EXT));
|
|
103
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER13_WEBGL"),
|
|
104
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER13_EXT));
|
|
105
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER14_WEBGL"),
|
|
106
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER14_EXT));
|
|
107
|
+
tmpl->Set(ConvertToV8String(isolate, "DRAW_BUFFER15_WEBGL"),
|
|
108
|
+
v8::Integer::NewFromUnsigned(isolate, GL_DRAW_BUFFER15_EXT));
|
|
109
|
+
|
|
110
|
+
tmpl->Set(ConvertToV8String(isolate, "MAX_COLOR_ATTACHMENTS_WEBGL"),
|
|
111
|
+
v8::Integer::NewFromUnsigned(isolate, GL_MAX_COLOR_ATTACHMENTS_EXT));
|
|
112
|
+
tmpl->Set(ConvertToV8String(isolate, "MAX_DRAW_BUFFERS_WEBGL"),
|
|
113
|
+
v8::Integer::NewFromUnsigned(isolate, GL_MAX_DRAW_BUFFERS_EXT));
|
|
114
|
+
|
|
115
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
116
|
+
ConvertToV8String(isolate, "WEBGL_draw_buffers"));
|
|
117
|
+
|
|
118
|
+
cache->WEBGL_draw_buffersTmpl =
|
|
119
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
120
|
+
return ctorTmpl;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static v8::Local<v8::Object>
|
|
124
|
+
NewInstance(v8::Isolate *isolate, WEBGL_draw_buffersImpl *buffers) {
|
|
125
|
+
auto context = isolate->GetCurrentContext();
|
|
126
|
+
v8::EscapableHandleScope scope(isolate);
|
|
127
|
+
auto object = WEBGL_draw_buffersImpl::GetCtor(isolate)->GetFunction(
|
|
128
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
129
|
+
SetNativeType(object, NativeType::WEBGL_draw_buffers);
|
|
130
|
+
object->SetAlignedPointerInInternalField(0, buffers);
|
|
131
|
+
buffers->BindFinalizer(isolate, object);
|
|
132
|
+
return scope.Escape(object);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static WEBGL_draw_buffersImpl *GetPointer(const v8::Local<v8::Object> &object) {
|
|
136
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
137
|
+
if (ptr == nullptr) {
|
|
138
|
+
return nullptr;
|
|
139
|
+
}
|
|
140
|
+
return static_cast<WEBGL_draw_buffersImpl *>(ptr);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static void DrawBuffersWEBGL(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
20
144
|
|
|
21
|
-
jsi::Value get(jsi::Runtime &, const jsi::PropNameID &name) override;
|
|
22
145
|
|
|
23
|
-
|
|
146
|
+
static void
|
|
147
|
+
FastDrawBuffersWEBGL(v8::Local<v8::Object> receiver_obj, v8::Local<v8::Array> value) {
|
|
148
|
+
WEBGL_draw_buffersImpl *ptr = GetPointer(receiver_obj);
|
|
149
|
+
if (ptr == nullptr) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
auto len = value->Length();
|
|
155
|
+
std::vector<uint32_t> buf;
|
|
156
|
+
buf.reserve(len);
|
|
157
|
+
|
|
158
|
+
auto copied = v8::TryToCopyAndConvertArrayToCppBuffer<v8::CTypeInfoBuilder<uint32_t>::Build().GetId(), uint32_t>(
|
|
159
|
+
value, buf.data(), len);
|
|
160
|
+
|
|
161
|
+
if (copied) {
|
|
162
|
+
|
|
163
|
+
canvas_native_webgl_draw_buffers_draw_buffers_webgl(buf.data(), buf.size(),
|
|
164
|
+
ptr->GetDrawBuffers());
|
|
165
|
+
}
|
|
166
|
+
}
|
|
24
167
|
|
|
25
|
-
WEBGL_draw_buffers
|
|
26
|
-
return
|
|
168
|
+
WEBGL_draw_buffers *GetDrawBuffers() {
|
|
169
|
+
return this->buffers_;
|
|
27
170
|
}
|
|
28
171
|
|
|
29
172
|
private:
|
|
30
|
-
|
|
173
|
+
WEBGL_draw_buffers *buffers_;
|
|
31
174
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 29/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "WEBGL_lose_contextImpl.h"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
WEBGL_lose_contextImpl::WEBGL_lose_contextImpl(WEBGL_lose_context* context) : context_(context){}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
void WEBGL_lose_contextImpl::LoseContext(
|
|
12
|
+
const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
13
|
+
WEBGL_lose_contextImpl *ptr = GetPointer(args.This());
|
|
14
|
+
if (ptr == nullptr) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
canvas_native_webgl_lose_context_lose_context(
|
|
19
|
+
ptr->GetContext());
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
void WEBGL_lose_contextImpl::RestoreContext(
|
|
24
|
+
const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
25
|
+
WEBGL_lose_contextImpl *ptr = GetPointer(args.This());
|
|
26
|
+
if (ptr == nullptr) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
canvas_native_webgl_lose_context_restore_context(
|
|
31
|
+
ptr->GetContext());
|
|
32
|
+
}
|
|
@@ -4,28 +4,76 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "rust/cxx.h"
|
|
8
|
-
#import "NativeScript/JSIRuntime.h"
|
|
9
7
|
#include "gl.h"
|
|
10
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
11
8
|
#include <vector>
|
|
9
|
+
#include "Helpers.h"
|
|
10
|
+
#include "Common.h"
|
|
11
|
+
#include "Caches.h"
|
|
12
|
+
#include "ObjectWrapperImpl.h"
|
|
13
|
+
class WEBGL_lose_contextImpl: ObjectWrapperImpl {
|
|
14
|
+
public:
|
|
15
|
+
WEBGL_lose_contextImpl(WEBGL_lose_context* context);
|
|
16
|
+
~WEBGL_lose_contextImpl() {
|
|
17
|
+
canvas_native_webgl_WEBGL_lose_context_destroy(this->GetContext());
|
|
18
|
+
this->context_ = nullptr;
|
|
19
|
+
}
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate) {
|
|
22
|
+
auto cache = Caches::Get(isolate);
|
|
23
|
+
auto ctor = cache->WEBGL_lose_contextTmpl.get();
|
|
24
|
+
if (ctor != nullptr) {
|
|
25
|
+
return ctor->Get(isolate);
|
|
26
|
+
}
|
|
15
27
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate);
|
|
29
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
30
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "WEBGL_lose_context"));
|
|
31
|
+
|
|
32
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
33
|
+
tmpl->SetInternalFieldCount(2);
|
|
34
|
+
|
|
35
|
+
tmpl->Set(ConvertToV8String(isolate, "loseContext"),
|
|
36
|
+
v8::FunctionTemplate::New(isolate, &LoseContext));
|
|
37
|
+
tmpl->Set(ConvertToV8String(isolate, "restoreContext"),
|
|
38
|
+
v8::FunctionTemplate::New(isolate, &RestoreContext));
|
|
39
|
+
|
|
40
|
+
tmpl->Set(ConvertToV8String(isolate, "ext_name"),
|
|
41
|
+
ConvertToV8String(isolate, "WEBGL_lose_context"));
|
|
19
42
|
|
|
20
|
-
|
|
43
|
+
cache->WEBGL_lose_contextTmpl =
|
|
44
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
45
|
+
return ctorTmpl;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static v8::Local<v8::Object>
|
|
49
|
+
NewInstance(v8::Isolate *isolate, WEBGL_lose_contextImpl *element) {
|
|
50
|
+
auto context = isolate->GetCurrentContext();
|
|
51
|
+
v8::EscapableHandleScope scope(isolate);
|
|
52
|
+
auto object = WEBGL_lose_contextImpl::GetCtor(isolate)->GetFunction(
|
|
53
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
54
|
+
SetNativeType( object, NativeType::WEBGL_lose_context);
|
|
55
|
+
object->SetAlignedPointerInInternalField(0, element);
|
|
56
|
+
element->BindFinalizer(isolate, object);
|
|
57
|
+
return scope.Escape(object);
|
|
58
|
+
}
|
|
21
59
|
|
|
22
|
-
|
|
60
|
+
static WEBGL_lose_contextImpl *GetPointer(const v8::Local<v8::Object> &object) {
|
|
61
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
62
|
+
if (ptr == nullptr) {
|
|
63
|
+
return nullptr;
|
|
64
|
+
}
|
|
65
|
+
return static_cast<WEBGL_lose_contextImpl *>(ptr);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static void LoseContext(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
23
69
|
|
|
70
|
+
static void RestoreContext(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
24
71
|
|
|
25
|
-
WEBGL_lose_context
|
|
26
|
-
return
|
|
72
|
+
WEBGL_lose_context* GetContext() {
|
|
73
|
+
return this->context_;
|
|
27
74
|
}
|
|
28
75
|
|
|
76
|
+
|
|
29
77
|
private:
|
|
30
|
-
|
|
78
|
+
WEBGL_lose_context* context_;
|
|
31
79
|
};
|