@nativescript/canvas 2.0.0-alpha.2 → 2.0.0-alpha.3
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/index.android.js +3 -3
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.ios.d.ts +3 -2
- package/Canvas/index.ios.js +74 -52
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +9 -2
- package/Canvas2D/CanvasGradient/index.js +23 -2
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +9 -2
- package/Canvas2D/CanvasPattern/index.js +20 -2
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +120 -132
- package/Canvas2D/CanvasRenderingContext2D/{index.android.js → index.js} +125 -133
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -0
- package/Canvas2D/DOMMatrix/index.d.ts +74 -2
- package/Canvas2D/DOMMatrix/index.js +180 -2
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.d.ts +15 -2
- package/Canvas2D/ImageData/index.js +66 -2
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +21 -2
- package/Canvas2D/Path2D/index.js +87 -2
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Canvas2D/TextMetrics/index.d.ts +17 -2
- package/Canvas2D/TextMetrics/index.js +44 -2
- package/Canvas2D/TextMetrics/index.js.map +1 -1
- package/Dom/Dom.d.ts +10 -0
- package/Dom/Dom.js +36 -0
- package/Dom/Dom.js.map +1 -0
- package/Dom/Fill.d.ts +4 -0
- package/Dom/Fill.js +8 -0
- package/Dom/Fill.js.map +1 -0
- package/Dom/Group.d.ts +21 -0
- package/Dom/Group.js +179 -0
- package/Dom/Group.js.map +1 -0
- package/Dom/Image.d.ts +12 -0
- package/Dom/Image.js +33 -0
- package/Dom/Image.js.map +1 -0
- package/Dom/Paint.d.ts +15 -0
- package/Dom/Paint.js +58 -0
- package/Dom/Paint.js.map +1 -0
- package/Dom/Shadow.d.ts +10 -0
- package/Dom/Shadow.js +26 -0
- package/Dom/Shadow.js.map +1 -0
- package/Dom/Text.d.ts +9 -0
- package/Dom/Text.js +50 -0
- package/Dom/Text.js.map +1 -0
- package/Dom/index.d.ts +8 -0
- package/Dom/index.js +9 -0
- package/Dom/index.js.map +1 -0
- package/Dom/shapes/Circle.d.ts +21 -0
- package/Dom/shapes/Circle.js +99 -0
- package/Dom/shapes/Circle.js.map +1 -0
- package/Dom/shapes/Line.d.ts +9 -0
- package/Dom/shapes/Line.js +37 -0
- package/Dom/shapes/Line.js.map +1 -0
- package/Dom/shapes/Path.d.ts +8 -0
- package/Dom/shapes/Path.js +31 -0
- package/Dom/shapes/Path.js.map +1 -0
- package/Dom/shapes/Points.d.ts +15 -0
- package/Dom/shapes/Points.js +21 -0
- package/Dom/shapes/Points.js.map +1 -0
- package/Dom/shapes/Rect.d.ts +15 -0
- package/Dom/shapes/Rect.js +63 -0
- package/Dom/shapes/Rect.js.map +1 -0
- package/Dom/shapes/RoundedRect.d.ts +12 -0
- package/Dom/shapes/RoundedRect.js +96 -0
- package/Dom/shapes/RoundedRect.js.map +1 -0
- package/Dom/shapes/index.d.ts +6 -0
- package/Dom/shapes/index.js +7 -0
- package/Dom/shapes/index.js.map +1 -0
- package/ImageAsset/index.d.ts +28 -2
- package/ImageAsset/index.js +158 -2
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/{index.android.d.ts → index.d.ts} +3 -2
- package/ImageBitmap/{index.android.js → index.js} +7 -4
- package/ImageBitmap/index.js.map +1 -0
- package/TextDecoder/index.d.ts +9 -2
- package/TextDecoder/index.js +53 -2
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +9 -2
- package/TextEncoder/index.js +51 -2
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +159 -242
- package/WebGL/WebGLExtensions/{index.android.js → index.js} +1 -1
- package/WebGL/WebGLExtensions/index.js.map +1 -0
- package/WebGL/WebGLRenderingContext/index.d.ts +153 -293
- package/WebGL/WebGLRenderingContext/{index.android.js → index.js} +25 -8
- package/WebGL/WebGLRenderingContext/index.js.map +1 -0
- package/WebGL2/WebGL2RenderingContext/common.d.ts +1 -0
- package/WebGL2/WebGL2RenderingContext/common.js +3 -0
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +101 -455
- package/WebGL2/WebGL2RenderingContext/{index.android.js → index.js} +16 -6
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -0
- package/helpers.js +3 -0
- package/helpers.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -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 +93 -1718
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +1 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +92 -0
- 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 +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/{TNSCanvas.nib → NSCCanvas.nib} +0 -0
- 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 +176 -3436
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +1 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +92 -0
- 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 +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/{TNSCanvas.nib → NSCCanvas.nib} +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +49 -93
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +2 -1
- package/platforms/ios/build.xcconfig +5 -0
- package/platforms/ios/src/CanvasModule.h +10 -0
- package/platforms/ios/src/CanvasModule.mm +14 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +60 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +1105 -0
- package/platforms/ios/src/cpp/Helpers.h +61 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +30 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +417 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +41 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +126 -0
- package/platforms/ios/src/cpp/JSICallback.h +15 -0
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +16 -0
- package/platforms/ios/src/cpp/OnRafCallback.h +24 -0
- package/platforms/ios/src/cpp/OnRafCallback.mm +25 -0
- package/platforms/ios/src/cpp/RafImpl.h +27 -0
- package/platforms/ios/src/cpp/RafImpl.mm +10 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +28 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +97 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +28 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +60 -0
- package/platforms/ios/src/cpp/VecMutableBuffer.h +51 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +6119 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +2854 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +28 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +42 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +49 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +70 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +1954 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +68 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +149 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +27 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +335 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +68 -0
- package/platforms/ios/src/cpp/gl.h +29 -0
- package/platforms/ios/src/cpp/rust/cxx.cc +793 -0
- package/platforms/ios/src/cpp/rust/cxx.h +1111 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +39 -0
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +516 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +5879 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +63 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.mm +97 -0
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +40 -0
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +23 -0
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +108 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +16 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +17 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +42 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +295 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +40 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +29 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +37 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +127 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +20 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +45 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +45 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +70 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +47 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +46 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +19 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +49 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +19 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +177 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +64 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +431 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +4554 -0
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +24 -0
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +21 -0
- package/platforms/ios/src/module.modulemap +4 -0
- package/Canvas2D/CanvasGradient/CanvasGradient.android.d.ts +0 -10
- package/Canvas2D/CanvasGradient/CanvasGradient.android.js +0 -26
- package/Canvas2D/CanvasGradient/CanvasGradient.android.js.map +0 -1
- package/Canvas2D/CanvasGradient/CanvasGradient.d.ts +0 -12
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.d.ts +0 -8
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.js +0 -19
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.js.map +0 -1
- package/Canvas2D/CanvasGradient/common.d.ts +0 -3
- package/Canvas2D/CanvasGradient/common.js +0 -3
- package/Canvas2D/CanvasGradient/common.js.map +0 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.android.d.ts +0 -8
- package/Canvas2D/CanvasPattern/CanvasPattern.android.js +0 -20
- package/Canvas2D/CanvasPattern/CanvasPattern.android.js.map +0 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.d.ts +0 -8
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.d.ts +0 -6
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js +0 -10
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js.map +0 -1
- package/Canvas2D/CanvasPattern/common.d.ts +0 -7
- package/Canvas2D/CanvasPattern/common.js +0 -9
- package/Canvas2D/CanvasPattern/common.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/common.d.ts +0 -87
- package/Canvas2D/CanvasRenderingContext2D/common.js +0 -12
- package/Canvas2D/CanvasRenderingContext2D/common.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.android.d.ts +0 -112
- package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.ios.d.ts +0 -110
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js +0 -897
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +0 -1
- package/Canvas2D/DOMMatrix/DOMMatrix.android.d.ts +0 -72
- package/Canvas2D/DOMMatrix/DOMMatrix.android.js +0 -177
- package/Canvas2D/DOMMatrix/DOMMatrix.android.js.map +0 -1
- package/Canvas2D/DOMMatrix/DOMMatrix.d.ts +0 -30
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.d.ts +0 -48
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.js +0 -142
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.js.map +0 -1
- package/Canvas2D/DOMMatrix/common.d.ts +0 -27
- package/Canvas2D/DOMMatrix/common.js +0 -9
- package/Canvas2D/DOMMatrix/common.js.map +0 -1
- package/Canvas2D/ImageData/ImageData.android.d.ts +0 -9
- package/Canvas2D/ImageData/ImageData.android.js +0 -65
- package/Canvas2D/ImageData/ImageData.android.js.map +0 -1
- package/Canvas2D/ImageData/ImageData.d.ts +0 -11
- package/Canvas2D/ImageData/ImageData.ios.d.ts +0 -10
- package/Canvas2D/ImageData/ImageData.ios.js +0 -45
- package/Canvas2D/ImageData/ImageData.ios.js.map +0 -1
- package/Canvas2D/ImageData/common.d.ts +0 -9
- package/Canvas2D/ImageData/common.js +0 -13
- package/Canvas2D/ImageData/common.js.map +0 -1
- package/Canvas2D/Path2D/Path2D.android.d.ts +0 -18
- package/Canvas2D/Path2D/Path2D.android.js +0 -83
- package/Canvas2D/Path2D/Path2D.android.js.map +0 -1
- package/Canvas2D/Path2D/Path2D.d.ts +0 -26
- package/Canvas2D/Path2D/Path2D.ios.d.ts +0 -15
- package/Canvas2D/Path2D/Path2D.ios.js +0 -55
- package/Canvas2D/Path2D/Path2D.ios.js.map +0 -1
- package/Canvas2D/Path2D/common.d.ts +0 -17
- package/Canvas2D/Path2D/common.js +0 -12
- package/Canvas2D/Path2D/common.js.map +0 -1
- package/Canvas2D/TextMetrics/TextMetrics.android.d.ts +0 -16
- package/Canvas2D/TextMetrics/TextMetrics.android.js +0 -43
- package/Canvas2D/TextMetrics/TextMetrics.android.js.map +0 -1
- package/Canvas2D/TextMetrics/TextMetrics.d.ts +0 -7
- package/Canvas2D/TextMetrics/TextMetrics.ios.d.ts +0 -16
- package/Canvas2D/TextMetrics/TextMetrics.ios.js +0 -43
- package/Canvas2D/TextMetrics/TextMetrics.ios.js.map +0 -1
- package/Canvas2D/TextMetrics/common.d.ts +0 -18
- package/Canvas2D/TextMetrics/common.js +0 -13
- package/Canvas2D/TextMetrics/common.js.map +0 -1
- package/ImageAsset/ImageAsset.android.d.ts +0 -20
- package/ImageAsset/ImageAsset.android.js +0 -149
- package/ImageAsset/ImageAsset.android.js.map +0 -1
- package/ImageAsset/ImageAsset.d.ts +0 -31
- package/ImageAsset/ImageAsset.ios.d.ts +0 -22
- package/ImageAsset/ImageAsset.ios.js +0 -114
- package/ImageAsset/ImageAsset.ios.js.map +0 -1
- package/ImageAsset/common.d.ts +0 -13
- package/ImageAsset/common.js +0 -21
- package/ImageAsset/common.js.map +0 -1
- package/ImageBitmap/common.d.ts +0 -8
- package/ImageBitmap/common.js +0 -9
- package/ImageBitmap/common.js.map +0 -1
- package/ImageBitmap/index.android.js.map +0 -1
- package/ImageBitmap/index.ios.d.ts +0 -12
- package/ImageBitmap/index.ios.js +0 -283
- package/ImageBitmap/index.ios.js.map +0 -1
- package/TextDecoder/TextDecoder.android.d.ts +0 -8
- package/TextDecoder/TextDecoder.android.js +0 -52
- package/TextDecoder/TextDecoder.android.js.map +0 -1
- package/TextDecoder/TextDecoder.d.ts +0 -10
- package/TextDecoder/TextDecoder.ios.d.ts +0 -6
- package/TextDecoder/TextDecoder.ios.js +0 -37
- package/TextDecoder/TextDecoder.ios.js.map +0 -1
- package/TextDecoder/common.d.ts +0 -8
- package/TextDecoder/common.js +0 -13
- package/TextDecoder/common.js.map +0 -1
- package/TextEncoder/TextEncoder.android.d.ts +0 -8
- package/TextEncoder/TextEncoder.android.js +0 -50
- package/TextEncoder/TextEncoder.android.js.map +0 -1
- package/TextEncoder/TextEncoder.d.ts +0 -10
- package/TextEncoder/TextEncoder.ios.d.ts +0 -6
- package/TextEncoder/TextEncoder.ios.js +0 -14
- package/TextEncoder/TextEncoder.ios.js.map +0 -1
- package/TextEncoder/common.d.ts +0 -7
- package/TextEncoder/common.js +0 -9
- package/TextEncoder/common.js.map +0 -1
- package/WebGL/WebGLExtensions/index.android.d.ts +0 -209
- package/WebGL/WebGLExtensions/index.android.js.map +0 -1
- package/WebGL/WebGLExtensions/index.ios.d.ts +0 -192
- package/WebGL/WebGLExtensions/index.ios.js +0 -250
- package/WebGL/WebGLExtensions/index.ios.js.map +0 -1
- package/WebGL/WebGLRenderingContext/index.android.d.ts +0 -165
- package/WebGL/WebGLRenderingContext/index.android.js.map +0 -1
- package/WebGL/WebGLRenderingContext/index.ios.d.ts +0 -163
- package/WebGL/WebGLRenderingContext/index.ios.js +0 -1168
- package/WebGL/WebGLRenderingContext/index.ios.js.map +0 -1
- package/WebGL2/WebGL2RenderingContext/index.android.d.ts +0 -103
- package/WebGL2/WebGL2RenderingContext/index.android.js.map +0 -1
- package/WebGL2/WebGL2RenderingContext/index.ios.d.ts +0 -102
- package/WebGL2/WebGL2RenderingContext/index.ios.js +0 -618
- package/WebGL2/WebGL2RenderingContext/index.ios.js.map +0 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/Utils.h +0 -26
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +0 -3264
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/Utils.h +0 -26
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +0 -3264
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface +0 -3264
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
#include "rust/cxx.h"
|
|
8
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
+
#import "NativeScript/JSIRuntime.h"
|
|
10
|
+
#include <vector>
|
|
11
|
+
|
|
12
|
+
using namespace facebook;
|
|
13
|
+
using namespace org::nativescript::canvas;
|
|
14
|
+
|
|
15
|
+
class JSI_EXPORT WebGLActiveInfoImpl : public jsi::HostObject {
|
|
16
|
+
public:
|
|
17
|
+
WebGLActiveInfoImpl(rust::Box<WebGLActiveInfo> info);
|
|
18
|
+
|
|
19
|
+
jsi::Value get(jsi::Runtime &, const jsi::PropNameID &name) override;
|
|
20
|
+
|
|
21
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt) override;
|
|
22
|
+
|
|
23
|
+
WebGLActiveInfo &GetWebGLActiveInfo();
|
|
24
|
+
|
|
25
|
+
private:
|
|
26
|
+
rust::Box<WebGLActiveInfo> info_;
|
|
27
|
+
};
|
|
28
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "WebGLActiveInfoImpl.h"
|
|
6
|
+
|
|
7
|
+
WebGLActiveInfoImpl::WebGLActiveInfoImpl(rust::Box<WebGLActiveInfo> info) : info_(
|
|
8
|
+
std::move(info)) {}
|
|
9
|
+
|
|
10
|
+
std::vector<jsi::PropNameID> WebGLActiveInfoImpl::getPropertyNames(jsi::Runtime &rt) {
|
|
11
|
+
std::vector<jsi::PropNameID> ret;
|
|
12
|
+
ret.reserve(3);
|
|
13
|
+
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("name")));
|
|
14
|
+
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("size")));
|
|
15
|
+
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("type")));
|
|
16
|
+
|
|
17
|
+
return ret;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
jsi::Value WebGLActiveInfoImpl::get(jsi::Runtime &runtime, const jsi::PropNameID &name) {
|
|
21
|
+
auto methodName = name.utf8(runtime);
|
|
22
|
+
if (methodName == "name") {
|
|
23
|
+
auto info_name = canvas_native_webgl_active_info_get_name(this->GetWebGLActiveInfo());
|
|
24
|
+
return jsi::String::createFromAscii(runtime, info_name.data(), info_name.size());
|
|
25
|
+
} else if (methodName == "size") {
|
|
26
|
+
auto size = canvas_native_webgl_active_info_get_size(this->GetWebGLActiveInfo());
|
|
27
|
+
return {size};
|
|
28
|
+
} else if (methodName == "type") {
|
|
29
|
+
auto type = canvas_native_webgl_active_info_get_type(this->GetWebGLActiveInfo());
|
|
30
|
+
return {(int32_t) type};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return jsi::Value::undefined();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
WebGLActiveInfo &WebGLActiveInfoImpl::GetWebGLActiveInfo() {
|
|
37
|
+
return *this->info_;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
#include "rust/cxx.h"
|
|
8
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
+
#import "NativeScript/JSIRuntime.h"
|
|
10
|
+
|
|
11
|
+
using namespace facebook;
|
|
12
|
+
|
|
13
|
+
class JSI_EXPORT WebGLBuffer : public jsi::HostObject {
|
|
14
|
+
public:
|
|
15
|
+
WebGLBuffer(uint32_t buffer) : buffer_(buffer) {}
|
|
16
|
+
|
|
17
|
+
uint32_t GetBuffer() {
|
|
18
|
+
return this->buffer_;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private:
|
|
22
|
+
uint32_t buffer_;
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
#include "rust/cxx.h"
|
|
8
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
+
#import "NativeScript/JSIRuntime.h"
|
|
10
|
+
|
|
11
|
+
using namespace facebook;
|
|
12
|
+
|
|
13
|
+
class JSI_EXPORT WebGLFramebuffer: public jsi::HostObject {
|
|
14
|
+
public:
|
|
15
|
+
WebGLFramebuffer(uint32_t framebuffer) : framebuffer_(framebuffer) {}
|
|
16
|
+
|
|
17
|
+
uint32_t GetFrameBuffer() {
|
|
18
|
+
return this->framebuffer_;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private:
|
|
22
|
+
uint32_t framebuffer_;
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma
|
|
6
|
+
|
|
7
|
+
#include "rust/cxx.h"
|
|
8
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
+
#import "NativeScript/JSIRuntime.h"
|
|
10
|
+
|
|
11
|
+
using namespace facebook;
|
|
12
|
+
|
|
13
|
+
class WebGLProgram: public jsi::HostObject {
|
|
14
|
+
public:
|
|
15
|
+
WebGLProgram(uint32_t program) : program_(program) {}
|
|
16
|
+
|
|
17
|
+
uint32_t GetProgram() {
|
|
18
|
+
return this->program_;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private:
|
|
22
|
+
uint32_t program_;
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 27/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
#include "rust/cxx.h"
|
|
8
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
+
#import "NativeScript/JSIRuntime.h"
|
|
10
|
+
|
|
11
|
+
using namespace facebook;
|
|
12
|
+
|
|
13
|
+
class JSI_EXPORT WebGLRenderbuffer : public jsi::HostObject {
|
|
14
|
+
public:
|
|
15
|
+
WebGLRenderbuffer(uint32_t renderbuffer) : renderbuffer_(renderbuffer) {}
|
|
16
|
+
|
|
17
|
+
uint32_t GetRenderBuffer() {
|
|
18
|
+
return this->renderbuffer_;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private:
|
|
22
|
+
uint32_t renderbuffer_;
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 22/03/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
#pragma process_pending_includes
|
|
7
|
+
|
|
8
|
+
#include <vector>
|
|
9
|
+
#include "rust/cxx.h"
|
|
10
|
+
#include "canvas-cxx/src/lib.rs.h"
|
|
11
|
+
#import "NativeScript/JSIRuntime.h"
|
|
12
|
+
#include "VecMutableBuffer.h"
|
|
13
|
+
|
|
14
|
+
#include "WebGLRenderingContextBase.h"
|
|
15
|
+
|
|
16
|
+
#include <cmath>
|
|
17
|
+
#include "Helpers.h"
|
|
18
|
+
|
|
19
|
+
#include "ImageAssetImpl.h"
|
|
20
|
+
#include "ImageBitmapImpl.h"
|
|
21
|
+
#include "RafImpl.h"
|
|
22
|
+
|
|
23
|
+
#include "canvas2d/CanvasRenderingContext2DImpl.h"
|
|
24
|
+
|
|
25
|
+
#include "WebGLBuffer.h"
|
|
26
|
+
#include "WebGLFramebuffer.h"
|
|
27
|
+
#include "WebGLProgram.h"
|
|
28
|
+
#include "WebGLRenderbuffer.h"
|
|
29
|
+
#include "WebGLShader.h"
|
|
30
|
+
#include "WebGLTexture.h"
|
|
31
|
+
#include "WebGLUniformLocation.h"
|
|
32
|
+
#include "WebGLShaderPrecisionFormatImpl.h"
|
|
33
|
+
#include "WebGLActiveInfoImpl.h"
|
|
34
|
+
|
|
35
|
+
#include "extensions/EXT_blend_minmaxImpl.h"
|
|
36
|
+
#include "extensions/EXT_color_buffer_half_floatImpl.h"
|
|
37
|
+
#include "extensions/EXT_disjoint_timer_queryImpl.h"
|
|
38
|
+
#include "extensions/EXT_sRGBImpl.h"
|
|
39
|
+
#include "extensions/EXT_shader_texture_lodImpl.h"
|
|
40
|
+
#include "extensions/EXT_texture_filter_anisotropicImpl.h"
|
|
41
|
+
#include "extensions/OES_element_index_uintImpl.h"
|
|
42
|
+
#include "extensions/OES_standard_derivativesImpl.h"
|
|
43
|
+
#include "extensions/OES_texture_floatImpl.h"
|
|
44
|
+
#include "extensions/OES_texture_float_linearImpl.h"
|
|
45
|
+
#include "extensions/OES_texture_half_floatImpl.h"
|
|
46
|
+
#include "extensions/OES_texture_half_float_linearImpl.h"
|
|
47
|
+
#include "extensions/OES_vertex_array_objectImpl.h"
|
|
48
|
+
#include "extensions/WEBGL_color_buffer_floatImpl.h"
|
|
49
|
+
#include "extensions/WEBGL_compressed_texture_atcImpl.h"
|
|
50
|
+
#include "extensions/WEBGL_compressed_texture_etcImpl.h"
|
|
51
|
+
#include "extensions/WEBGL_compressed_texture_etc1Impl.h"
|
|
52
|
+
#include "extensions/WEBGL_compressed_texture_pvrtcImpl.h"
|
|
53
|
+
#include "extensions/WEBGL_compressed_texture_s3tcImpl.h"
|
|
54
|
+
#include "extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h"
|
|
55
|
+
#include "extensions/WEBGL_depth_textureImpl.h"
|
|
56
|
+
#include "extensions/WEBGL_lose_contextImpl.h"
|
|
57
|
+
#include "extensions/ANGLE_instanced_arraysImpl.h"
|
|
58
|
+
#include "extensions/WEBGL_draw_buffersImpl.h"
|
|
59
|
+
#include "gl.h"
|
|
60
|
+
|
|
61
|
+
using namespace facebook;
|
|
62
|
+
using namespace org::nativescript::canvas;
|
|
63
|
+
|
|
64
|
+
class JSI_EXPORT WebGLRenderingContext : public WebGLRenderingContextBase {
|
|
65
|
+
public:
|
|
66
|
+
|
|
67
|
+
WebGLRenderingContext(rust::Box<WebGLState> state);
|
|
68
|
+
|
|
69
|
+
WebGLRenderingContext(rust::Box<WebGLState> state, WebGLRenderingVersion version);
|
|
70
|
+
|
|
71
|
+
jsi::Value get(jsi::Runtime &, const jsi::PropNameID &name) override;
|
|
72
|
+
|
|
73
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt) override;
|
|
74
|
+
|
|
75
|
+
jsi::Value GetParameterInternal(jsi::Runtime &runtime, uint32_t pnameValue,
|
|
76
|
+
rust::Box<WebGLResult> result);
|
|
77
|
+
|
|
78
|
+
static inline jsi::Value GetProperty(const std::string &methodName) {
|
|
79
|
+
if (methodName == "DEPTH_BUFFER_BIT") { return {0x00000100}; }
|
|
80
|
+
|
|
81
|
+
if (methodName == "STENCIL_BUFFER_BIT") { return {0x00000400}; }
|
|
82
|
+
|
|
83
|
+
if (methodName == "COLOR_BUFFER_BIT") { return {0x00004000}; }
|
|
84
|
+
|
|
85
|
+
if (methodName == "POINTS") { return {0x0000}; }
|
|
86
|
+
|
|
87
|
+
if (methodName == "LINES") { return {0x0001}; }
|
|
88
|
+
|
|
89
|
+
if (methodName == "LINE_LOOP") { return {0x0002}; }
|
|
90
|
+
|
|
91
|
+
if (methodName == "LINE_STRIP") { return {0x0003}; }
|
|
92
|
+
|
|
93
|
+
if (methodName == "TRIANGLES") { return {0x0004}; }
|
|
94
|
+
|
|
95
|
+
if (methodName == "TRIANGLE_STRIP") { return {0x0005}; }
|
|
96
|
+
|
|
97
|
+
if (methodName == "TRIANGLE_FAN") { return {0x0006}; }
|
|
98
|
+
|
|
99
|
+
if (methodName == "ZERO") { return {0}; }
|
|
100
|
+
|
|
101
|
+
if (methodName == "ONE") { return {1}; }
|
|
102
|
+
|
|
103
|
+
if (methodName == "SRC_COLOR") { return {0x0300}; }
|
|
104
|
+
|
|
105
|
+
if (methodName == "ONE_MINUS_SRC_COLOR") { return {0x0301}; }
|
|
106
|
+
|
|
107
|
+
if (methodName == "SRC_ALPHA") { return {0x0302}; }
|
|
108
|
+
|
|
109
|
+
if (methodName == "ONE_MINUS_SRC_ALPHA") { return {0x0303}; }
|
|
110
|
+
|
|
111
|
+
if (methodName == "DST_ALPHA") { return {0x0304}; }
|
|
112
|
+
|
|
113
|
+
if (methodName == "ONE_MINUS_DST_ALPHA") { return {0x0305}; }
|
|
114
|
+
|
|
115
|
+
if (methodName == "DST_COLOR") { return {0x0306}; }
|
|
116
|
+
|
|
117
|
+
if (methodName == "ONE_MINUS_DST_COLOR") { return {0x0307}; }
|
|
118
|
+
|
|
119
|
+
if (methodName == "SRC_ALPHA_SATURATE") { return {0x0308}; }
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
if (methodName == "CONSTANT_COLOR") { return {0x8001}; }
|
|
123
|
+
if (methodName == "ONE_MINUS_CONSTANT_COLOR") { return {0x8002}; }
|
|
124
|
+
if (methodName == "CONSTANT_ALPHA") { return {0x8003}; }
|
|
125
|
+
if (methodName == "ONE_MINUS_CONSTANT_ALPHA") { return {0x8004}; }
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
/* Blending equations */
|
|
129
|
+
|
|
130
|
+
if (methodName == "FUNC_ADD") { return {0x8006}; }
|
|
131
|
+
if (methodName == "FUNC_SUBTRACT") { return {0x800A}; }
|
|
132
|
+
if (methodName == "FUNC_REVERSE_SUBTRACT") { return {0x800B}; }
|
|
133
|
+
if (methodName == "BLEND_EQUATION") { return {0x8009}; }
|
|
134
|
+
if (methodName == "BLEND_EQUATION_RGB") { return {0x8009}; }
|
|
135
|
+
if (methodName == "BLEND_EQUATION_ALPHA") { return {0x883D}; }
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
if (methodName == "BLEND_DST_RGB") { return {0x80C8}; }
|
|
139
|
+
if (methodName == "BLEND_SRC_RGB") { return {0x80C9}; }
|
|
140
|
+
if (methodName == "BLEND_DST_ALPHA") { return {0x80CA}; }
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
if (methodName == "BLEND_SRC_ALPHA") { return {0x80CB}; }
|
|
144
|
+
if (methodName == "BLEND_COLOR") { return {0x8005}; }
|
|
145
|
+
if (methodName == "ARRAY_BUFFER_BINDING") { return {0x8894}; }
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
if (methodName == "ELEMENT_ARRAY_BUFFER_BINDING") { return {0x8895}; }
|
|
149
|
+
if (methodName == "LINE_WIDTH") { return {0x0B21}; }
|
|
150
|
+
if (methodName == "ALIASED_POINT_SIZE_RANGE") { return {0x846D}; }
|
|
151
|
+
|
|
152
|
+
if (methodName == "ALIASED_LINE_WIDTH_RANGE") { return {0x846E}; }
|
|
153
|
+
if (methodName == "CULL_FACE_MODE") { return {0x0B45}; }
|
|
154
|
+
if (methodName == "FRONT_FACE") { return {0x0B46}; }
|
|
155
|
+
|
|
156
|
+
if (methodName == "DEPTH_RANGE") { return {0x0B70}; }
|
|
157
|
+
if (methodName == "DEPTH_WRITEMASK") { return {0x0B72}; }
|
|
158
|
+
if (methodName == "DEPTH_CLEAR_VALUE") { return {0x0B73}; }
|
|
159
|
+
|
|
160
|
+
if (methodName == "DEPTH_FUNC") { return {0x0B74}; }
|
|
161
|
+
if (methodName == "STENCIL_CLEAR_VALUE") { return {0x0B91}; }
|
|
162
|
+
if (methodName == "STENCIL_FUNC") { return {0x0B92}; }
|
|
163
|
+
|
|
164
|
+
if (methodName == "STENCIL_FAIL") { return {0x0B94}; }
|
|
165
|
+
if (methodName == "STENCIL_PASS_DEPTH_FAIL") { return {0x0B95}; }
|
|
166
|
+
if (methodName == "STENCIL_PASS_DEPTH_PASS") { return {0x0B96}; }
|
|
167
|
+
|
|
168
|
+
if (methodName == "STENCIL_REF") { return {0x0B97}; }
|
|
169
|
+
if (methodName == "STENCIL_VALUE_MASK") { return {0x0B93}; }
|
|
170
|
+
if (methodName == "STENCIL_WRITEMASK") { return {0x0B98}; }
|
|
171
|
+
|
|
172
|
+
if (methodName == "STENCIL_BACK_FUNC") { return {0x8800}; }
|
|
173
|
+
if (methodName == "STENCIL_BACK_FAIL") { return {0x8801}; }
|
|
174
|
+
if (methodName == "STENCIL_BACK_PASS_DEPTH_FAIL") { return {0x8802}; }
|
|
175
|
+
|
|
176
|
+
if (methodName == "STENCIL_BACK_PASS_DEPTH_PASS") { return {0x8803}; }
|
|
177
|
+
if (methodName == "STENCIL_BACK_REF") { return {0x8CA3}; }
|
|
178
|
+
if (methodName == "STENCIL_BACK_VALUE_MASK") { return {0x8CA4}; }
|
|
179
|
+
if (methodName == "STENCIL_BACK_WRITEMASK") { return {0x8CA5}; }
|
|
180
|
+
|
|
181
|
+
if (methodName == "VIEWPORT") { return {0x0BA2}; }
|
|
182
|
+
if (methodName == "SCISSOR_BOX") { return {0x0C10}; }
|
|
183
|
+
if (methodName == "COLOR_CLEAR_VALUE") { return {0x0C22}; }
|
|
184
|
+
if (methodName == "COLOR_WRITEMASK") { return {0x0C23}; }
|
|
185
|
+
|
|
186
|
+
if (methodName == "UNPACK_ALIGNMENT") { return {0x0CF5}; }
|
|
187
|
+
if (methodName == "PACK_ALIGNMENT") { return {0x0D05}; }
|
|
188
|
+
if (methodName == "MAX_TEXTURE_SIZE") { return {0x0D33}; }
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
if (methodName == "MAX_VIEWPORT_DIMS") { return {0x0D3A}; }
|
|
192
|
+
if (methodName == "SUBPIXEL_BITS") { return {0x0D50}; }
|
|
193
|
+
|
|
194
|
+
if (methodName == "RED_BITS") { return {0x0D52}; }
|
|
195
|
+
if (methodName == "GREEN_BITS") { return {0x0D53}; }
|
|
196
|
+
if (methodName == "BLUE_BITS") { return {0x0D54}; }
|
|
197
|
+
if (methodName == "ALPHA_BITS") { return {0x0D55}; }
|
|
198
|
+
|
|
199
|
+
if (methodName == "STENCIL_BITS") { return {0x0D57}; }
|
|
200
|
+
if (methodName == "POLYGON_OFFSET_UNITS") { return {0x2A00}; }
|
|
201
|
+
if (methodName == "POLYGON_OFFSET_FACTOR") { return {0x8038}; }
|
|
202
|
+
|
|
203
|
+
if (methodName == "TEXTURE_BINDING_2D") { return {0x8069}; }
|
|
204
|
+
if (methodName == "SAMPLE_BUFFERS") { return {0x80A8}; }
|
|
205
|
+
if (methodName == "SAMPLES") { return {0x80A9}; }
|
|
206
|
+
if (methodName == "SAMPLE_COVERAGE_VALUE") { return {0x80AA}; }
|
|
207
|
+
|
|
208
|
+
if (methodName == "SAMPLE_COVERAGE_INVERT") { return {0x80AB}; }
|
|
209
|
+
if (methodName == "COMPRESSED_TEXTURE_FORMATS") { return {0x86A3}; }
|
|
210
|
+
if (methodName == "VENDOR") { return {0x1F00}; }
|
|
211
|
+
if (methodName == "RENDERER") { return {0x1F01}; }
|
|
212
|
+
|
|
213
|
+
if (methodName == "VERSION") { return {0x1F02}; }
|
|
214
|
+
if (methodName == "IMPLEMENTATION_COLOR_READ_TYPE") { return {0x8B9A}; }
|
|
215
|
+
if (methodName == "IMPLEMENTATION_COLOR_READ_FORMAT") { return {0x8B9B}; }
|
|
216
|
+
if (methodName == "BROWSER_DEFAULT_WEBGL") { return {0x9244}; }
|
|
217
|
+
|
|
218
|
+
if (methodName == "STATIC_DRAW") { return {0x88E4}; }
|
|
219
|
+
if (methodName == "STREAM_DRAW") { return {0x88E0}; }
|
|
220
|
+
if (methodName == "DYNAMIC_DRAW") { return {0x88E8}; }
|
|
221
|
+
if (methodName == "ARRAY_BUFFER") { return {0x8892}; }
|
|
222
|
+
|
|
223
|
+
if (methodName == "ELEMENT_ARRAY_BUFFER") { return {0x8893}; }
|
|
224
|
+
if (methodName == "BUFFER_SIZE") { return {0x8764}; }
|
|
225
|
+
if (methodName == "BUFFER_USAGE") { return {0x8765}; }
|
|
226
|
+
if (methodName == "CURRENT_VERTEX_ATTRIB") { return {0x8626}; }
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_ENABLED") { return {0x8622}; }
|
|
230
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_SIZE") { return {0x8623}; }
|
|
231
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_STRIDE") { return {0x8624}; }
|
|
232
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_TYPE") { return {0x8625}; }
|
|
233
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_NORMALIZED") { return {0x886A}; }
|
|
234
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_POINTER") { return {0x8645}; }
|
|
235
|
+
if (methodName == "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING") { return {0x889F}; }
|
|
236
|
+
|
|
237
|
+
if (methodName == "CULL_FACE") { return {0x0B44}; }
|
|
238
|
+
if (methodName == "FRONT") { return {0x0404}; }
|
|
239
|
+
if (methodName == "BACK") { return {0x0405}; }
|
|
240
|
+
if (methodName == "FRONT_AND_BACK") { return {0x0408}; }
|
|
241
|
+
|
|
242
|
+
if (methodName == "BLEND") { return {0x0BE2}; }
|
|
243
|
+
if (methodName == "DEPTH_TEST") { return {0x0B71}; }
|
|
244
|
+
if (methodName == "DITHER") { return {0x0BD0}; }
|
|
245
|
+
if (methodName == "POLYGON_OFFSET_FILL") { return {0x8037}; }
|
|
246
|
+
|
|
247
|
+
if (methodName == "SAMPLE_ALPHA_TO_COVERAGE") { return {0x809E}; }
|
|
248
|
+
if (methodName == "SAMPLE_COVERAGE") { return {0x80A0}; }
|
|
249
|
+
if (methodName == "SCISSOR_TEST") { return {0x0C11}; }
|
|
250
|
+
if (methodName == "STENCIL_TEST") { return {0x0B90}; }
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
/* Errors */
|
|
254
|
+
|
|
255
|
+
if (methodName == "NO_ERROR") { return {0}; }
|
|
256
|
+
if (methodName == "INVALID_ENUM") { return {0x0500}; }
|
|
257
|
+
if (methodName == "INVALID_VALUE") { return {0x0501}; }
|
|
258
|
+
if (methodName == "INVALID_OPERATION") { return {0x0502}; }
|
|
259
|
+
|
|
260
|
+
if (methodName == "OUT_OF_MEMORY") { return {0x0505}; }
|
|
261
|
+
if (methodName == "CONTEXT_LOST_WEBGL") { return {0x9242}; }
|
|
262
|
+
if (methodName == "CW") { return {0x0900}; }
|
|
263
|
+
if (methodName == "CCW") { return {0x0901}; }
|
|
264
|
+
|
|
265
|
+
if (methodName == "DONT_CARE") { return {0x1100}; }
|
|
266
|
+
if (methodName == "FASTEST") { return {0x1101}; }
|
|
267
|
+
if (methodName == "NICEST") { return {0x1102}; }
|
|
268
|
+
if (methodName == "GENERATE_MIPMAP_HINT") { return {0x8192}; }
|
|
269
|
+
|
|
270
|
+
if (methodName == "BYTE") { return {0x1400}; }
|
|
271
|
+
if (methodName == "UNSIGNED_BYTE") { return {0x1401}; }
|
|
272
|
+
if (methodName == "SHORT") { return {0x1402}; }
|
|
273
|
+
if (methodName == "UNSIGNED_SHORT") { return {0x1403}; }
|
|
274
|
+
|
|
275
|
+
if (methodName == "INT") { return {0x1404}; }
|
|
276
|
+
if (methodName == "UNSIGNED_INT") { return {0x1405}; }
|
|
277
|
+
if (methodName == "FLOAT") { return {0x1406}; }
|
|
278
|
+
if (methodName == "DEPTH_COMPONENT") { return {0x1902}; }
|
|
279
|
+
|
|
280
|
+
if (methodName == "ALPHA") { return {0x1906}; }
|
|
281
|
+
if (methodName == "RGB") { return {0x1907}; }
|
|
282
|
+
|
|
283
|
+
/* Clearing buffers */
|
|
284
|
+
|
|
285
|
+
if (methodName == "RGBA") { return {0x1908}; }
|
|
286
|
+
if (methodName == "LUMINANCE") { return {0x1909}; }
|
|
287
|
+
if (methodName == "LUMINANCE_ALPHA") { return {0x190A}; }
|
|
288
|
+
|
|
289
|
+
/* Clearing buffers */
|
|
290
|
+
|
|
291
|
+
/* Rendering primitives */
|
|
292
|
+
|
|
293
|
+
if (methodName == "UNSIGNED_SHORT_4_4_4_4") { return {0x8033}; }
|
|
294
|
+
if (methodName == "UNSIGNED_SHORT_5_5_5_1") { return {0x8034}; }
|
|
295
|
+
if (methodName == "UNSIGNED_SHORT_5_6_5") { return {0x8363}; }
|
|
296
|
+
if (methodName == "FRAGMENT_SHADER") { return {0x8B30}; }
|
|
297
|
+
if (methodName == "VERTEX_SHADER") { return {0x8B31}; }
|
|
298
|
+
if (methodName == "COMPILE_STATUS") { return {0x8B81}; }
|
|
299
|
+
if (methodName == "DELETE_STATUS") { return {0x8B80}; }
|
|
300
|
+
|
|
301
|
+
/* Rendering primitives */
|
|
302
|
+
|
|
303
|
+
/* Blending modes */
|
|
304
|
+
|
|
305
|
+
if (methodName == "LINK_STATUS") { return {0x8B82}; }
|
|
306
|
+
if (methodName == "VALIDATE_STATUS") { return {0x8B83}; }
|
|
307
|
+
if (methodName == "ATTACHED_SHADERS") { return {0x8B85}; }
|
|
308
|
+
if (methodName == "ACTIVE_ATTRIBUTES") { return {0x8B89}; }
|
|
309
|
+
if (methodName == "ACTIVE_UNIFORMS") { return {0x8B86}; }
|
|
310
|
+
if (methodName == "MAX_VERTEX_ATTRIBS") { return {0x8869}; }
|
|
311
|
+
if (methodName == "MAX_VERTEX_UNIFORM_VECTORS") { return {0x8DFB}; }
|
|
312
|
+
if (methodName == "MAX_VARYING_VECTORS") { return {0x8DFC}; }
|
|
313
|
+
if (methodName == "MAX_COMBINED_TEXTURE_IMAGE_UNITS") { return {0x8B4D}; }
|
|
314
|
+
if (methodName == "MAX_VERTEX_TEXTURE_IMAGE_UNITS") { return {0x8B4C}; }
|
|
315
|
+
if (methodName == "MAX_TEXTURE_IMAGE_UNITS") { return {0x8872}; }
|
|
316
|
+
if (methodName == "MAX_FRAGMENT_UNIFORM_VECTORS") { return {0x8DFD}; }
|
|
317
|
+
if (methodName == "SHADER_TYPE") { return {0x8B4F}; }
|
|
318
|
+
if (methodName == "SHADING_LANGUAGE_VERSION") { return {0x8B8C}; }
|
|
319
|
+
if (methodName == "CURRENT_PROGRAM") { return {0x8B8D}; }
|
|
320
|
+
|
|
321
|
+
/* Blending modes */
|
|
322
|
+
|
|
323
|
+
if (methodName == "NEVER") { return {0x0200}; }
|
|
324
|
+
if (methodName == "LESS") { return {0x0201}; }
|
|
325
|
+
if (methodName == "EQUAL") { return {0x0202}; }
|
|
326
|
+
|
|
327
|
+
/* Blending equations */
|
|
328
|
+
|
|
329
|
+
/* Getting GL parameter information */
|
|
330
|
+
|
|
331
|
+
if (methodName == "LEQUAL") { return {0x0203}; }
|
|
332
|
+
if (methodName == "GREATER") { return {0x0204}; }
|
|
333
|
+
if (methodName == "NOTEQUAL") { return {0x0205}; }
|
|
334
|
+
if (methodName == "GEQUAL") { return {0x0206}; }
|
|
335
|
+
if (methodName == "ALWAYS") { return {0x0207}; }
|
|
336
|
+
if (methodName == "KEEP") { return {0x1E00}; }
|
|
337
|
+
if (methodName == "REPLACE") { return {0x1E01}; }
|
|
338
|
+
if (methodName == "INCR") { return {0x1E02}; }
|
|
339
|
+
if (methodName == "DECR") { return {0x1E03}; }
|
|
340
|
+
if (methodName == "INVERT") { return {0x150A}; }
|
|
341
|
+
if (methodName == "INCR_WRAP") { return {0x8507}; }
|
|
342
|
+
if (methodName == "DECR_WRAP") { return {0x8508}; }
|
|
343
|
+
if (methodName == "NEAREST") { return {0x2600}; }
|
|
344
|
+
if (methodName == "LINEAR") { return {0x2601}; }
|
|
345
|
+
if (methodName == "NEAREST_MIPMAP_NEAREST") { return {0x2700}; }
|
|
346
|
+
if (methodName == "LINEAR_MIPMAP_NEAREST") { return {0x2701}; }
|
|
347
|
+
if (methodName == "NEAREST_MIPMAP_LINEAR") { return {0x2702}; }
|
|
348
|
+
if (methodName == "LINEAR_MIPMAP_LINEAR") { return {0x2703}; }
|
|
349
|
+
if (methodName == "TEXTURE_MAG_FILTER") { return {0x2800}; }
|
|
350
|
+
if (methodName == "TEXTURE_MIN_FILTER") { return {0x2801}; }
|
|
351
|
+
if (methodName == "TEXTURE_WRAP_S") { return {0x2802}; }
|
|
352
|
+
if (methodName == "TEXTURE_WRAP_T") { return {0x2803}; }
|
|
353
|
+
if (methodName == "TEXTURE_2D") { return {0x0DE1}; }
|
|
354
|
+
if (methodName == "TEXTURE") { return {0x1702}; }
|
|
355
|
+
if (methodName == "TEXTURE_CUBE_MAP") { return {0x8513}; }
|
|
356
|
+
if (methodName == "TEXTURE_BINDING_CUBE_MAP") { return {0x8514}; }
|
|
357
|
+
if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_X") { return {0x8515}; }
|
|
358
|
+
if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_X") { return {0x8516}; }
|
|
359
|
+
if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_Y") { return {0x8517}; }
|
|
360
|
+
if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_Y") { return {0x8518}; }
|
|
361
|
+
if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_Z") { return {0x8519}; }
|
|
362
|
+
if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_Z") { return {0x851A}; }
|
|
363
|
+
if (methodName == "MAX_CUBE_MAP_TEXTURE_SIZE") { return {0x851C}; }
|
|
364
|
+
if (methodName == "TEXTURE0") { return {0x84C0}; }
|
|
365
|
+
if (methodName == "TEXTURE1") { return {0x84C1}; }
|
|
366
|
+
if (methodName == "TEXTURE2") { return {0x84C2}; }
|
|
367
|
+
if (methodName == "TEXTURE3") { return {0x84C3}; }
|
|
368
|
+
if (methodName == "TEXTURE4") { return {0x84C4}; }
|
|
369
|
+
if (methodName == "TEXTURE5") { return {0x84C5}; }
|
|
370
|
+
if (methodName == "TEXTURE6") { return {0x84C6}; }
|
|
371
|
+
if (methodName == "TEXTURE7") { return {0x84C7}; }
|
|
372
|
+
if (methodName == "TEXTURE8") { return {0x84C8}; }
|
|
373
|
+
if (methodName == "TEXTURE9") { return {0x84C9}; }
|
|
374
|
+
if (methodName == "TEXTURE10") { return {0x84CA}; }
|
|
375
|
+
if (methodName == "TEXTURE11") { return {0x84CB}; }
|
|
376
|
+
if (methodName == "TEXTURE12") { return {0x84CC}; }
|
|
377
|
+
if (methodName == "TEXTURE13") { return {0x84CD}; }
|
|
378
|
+
if (methodName == "TEXTURE14") { return {0x84CE}; }
|
|
379
|
+
if (methodName == "TEXTURE15") { return {0x84CF}; }
|
|
380
|
+
if (methodName == "TEXTURE16") { return {0x84D0}; }
|
|
381
|
+
if (methodName == "TEXTURE17") { return {0x84D1}; }
|
|
382
|
+
if (methodName == "TEXTURE18") { return {0x84D2}; }
|
|
383
|
+
if (methodName == "TEXTURE19") { return {0x84D3}; }
|
|
384
|
+
if (methodName == "TEXTURE20") { return {0x84D4}; }
|
|
385
|
+
if (methodName == "TEXTURE21") { return {0x84D5}; }
|
|
386
|
+
if (methodName == "TEXTURE22") { return {0x84D6}; }
|
|
387
|
+
if (methodName == "TEXTURE23") { return {0x84D7}; }
|
|
388
|
+
if (methodName == "TEXTURE24") { return {0x84D8}; }
|
|
389
|
+
if (methodName == "TEXTURE25") { return {0x84D9}; }
|
|
390
|
+
if (methodName == "TEXTURE26") { return {0x84DA}; }
|
|
391
|
+
if (methodName == "TEXTURE27") { return {0x84DB}; }
|
|
392
|
+
if (methodName == "TEXTURE28") { return {0x84DC}; }
|
|
393
|
+
if (methodName == "TEXTURE29") { return {0x84DD}; }
|
|
394
|
+
|
|
395
|
+
/* Getting GL parameter information */
|
|
396
|
+
|
|
397
|
+
/* Buffers */
|
|
398
|
+
|
|
399
|
+
if (methodName == "TEXTURE30") { return {0x84DE}; }
|
|
400
|
+
if (methodName == "TEXTURE31") { return {0x84DF}; }
|
|
401
|
+
if (methodName == "ACTIVE_TEXTURE") { return {0x84E0}; }
|
|
402
|
+
if (methodName == "REPEAT") { return {0x2901}; }
|
|
403
|
+
if (methodName == "CLAMP_TO_EDGE") { return {0x812F}; }
|
|
404
|
+
if (methodName == "MIRRORED_REPEAT") { return {0x8370}; }
|
|
405
|
+
if (methodName == "FLOAT_VEC2") { return {0x8B50}; }
|
|
406
|
+
|
|
407
|
+
/* Buffers */
|
|
408
|
+
|
|
409
|
+
/* Vertex attributes */
|
|
410
|
+
|
|
411
|
+
if (methodName == "FLOAT_VEC3") { return {0x8B51}; }
|
|
412
|
+
if (methodName == "FLOAT_VEC4") { return {0x8B52}; }
|
|
413
|
+
if (methodName == "INT_VEC2") { return {0x8B53}; }
|
|
414
|
+
if (methodName == "INT_VEC3") { return {0x8B54}; }
|
|
415
|
+
if (methodName == "INT_VEC4") { return {0x8B55}; }
|
|
416
|
+
if (methodName == "BOOL") { return {0x8B56}; }
|
|
417
|
+
if (methodName == "BOOL_VEC2") { return {0x8B57}; }
|
|
418
|
+
if (methodName == "BOOL_VEC3") { return {0x8B58}; }
|
|
419
|
+
|
|
420
|
+
/* Vertex attributes */
|
|
421
|
+
|
|
422
|
+
/* Culling */
|
|
423
|
+
|
|
424
|
+
if (methodName == "BOOL_VEC4") { return {0x8B59}; }
|
|
425
|
+
if (methodName == "FLOAT_MAT2") { return {0x8B5A}; }
|
|
426
|
+
if (methodName == "FLOAT_MAT3") { return {0x8B5B}; }
|
|
427
|
+
if (methodName == "FLOAT_MAT4") { return {0x8B5C}; }
|
|
428
|
+
|
|
429
|
+
/* Culling */
|
|
430
|
+
|
|
431
|
+
/* Enabling and disabling */
|
|
432
|
+
|
|
433
|
+
if (methodName == "SAMPLER_2D") { return {0x8B5E}; }
|
|
434
|
+
if (methodName == "SAMPLER_CUBE") { return {0x8B60}; }
|
|
435
|
+
if (methodName == "LOW_FLOAT") { return {0x8DF0}; }
|
|
436
|
+
if (methodName == "MEDIUM_FLOAT") { return {0x8DF1}; }
|
|
437
|
+
if (methodName == "HIGH_FLOAT") { return {0x8DF2}; }
|
|
438
|
+
if (methodName == "LOW_INT") { return {0x8DF3}; }
|
|
439
|
+
if (methodName == "MEDIUM_INT") { return {0x8DF4}; }
|
|
440
|
+
if (methodName == "HIGH_INT") { return {0x8DF5}; }
|
|
441
|
+
|
|
442
|
+
/* Enabling and disabling */
|
|
443
|
+
|
|
444
|
+
if (methodName == "FRAMEBUFFER") { return {0x8D40}; }
|
|
445
|
+
if (methodName == "RENDERBUFFER") { return {0x8D41}; }
|
|
446
|
+
if (methodName == "RGBA4") { return {0x8056}; }
|
|
447
|
+
if (methodName == "RGB5_A1") { return {0x8057}; }
|
|
448
|
+
if (methodName == "RGB565") { return {0x8D62}; }
|
|
449
|
+
if (methodName == "DEPTH_COMPONENT16") { return {0x81A5}; }
|
|
450
|
+
if (methodName == "STENCIL_INDEX8") { return {0x8D48}; }
|
|
451
|
+
|
|
452
|
+
/* Errors */
|
|
453
|
+
|
|
454
|
+
/* Front face directions */
|
|
455
|
+
|
|
456
|
+
if (methodName == "DEPTH_STENCIL") { return {0x84F9}; }
|
|
457
|
+
if (methodName == "RENDERBUFFER_WIDTH") { return {0x8D42}; }
|
|
458
|
+
|
|
459
|
+
/* Front face directions */
|
|
460
|
+
|
|
461
|
+
/* Hints */
|
|
462
|
+
|
|
463
|
+
if (methodName == "RENDERBUFFER_HEIGHT") { return {0x8D43}; }
|
|
464
|
+
if (methodName == "RENDERBUFFER_INTERNAL_FORMAT") { return {0x8D44}; }
|
|
465
|
+
if (methodName == "RENDERBUFFER_RED_SIZE") { return {0x8D50}; }
|
|
466
|
+
if (methodName == "RENDERBUFFER_GREEN_SIZE") { return {0x8D51}; }
|
|
467
|
+
|
|
468
|
+
/* Hints */
|
|
469
|
+
|
|
470
|
+
/* Data types */
|
|
471
|
+
|
|
472
|
+
if (methodName == "RENDERBUFFER_BLUE_SIZE") { return {0x8D52}; }
|
|
473
|
+
if (methodName == "RENDERBUFFER_ALPHA_SIZE") { return {0x8D53}; }
|
|
474
|
+
if (methodName == "RENDERBUFFER_DEPTH_SIZE") { return {0x8D54}; }
|
|
475
|
+
if (methodName == "RENDERBUFFER_STENCIL_SIZE") { return {0x8D55}; }
|
|
476
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE") { return {0x8CD0}; }
|
|
477
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME") { return {0x8CD1}; }
|
|
478
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL") { return {0x8CD2}; }
|
|
479
|
+
|
|
480
|
+
/* Data types */
|
|
481
|
+
|
|
482
|
+
/* Pixel formats */
|
|
483
|
+
|
|
484
|
+
if (methodName == "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE") { return {0x8CD3}; }
|
|
485
|
+
if (methodName == "COLOR_ATTACHMENT0") { return {0x8CE0}; }
|
|
486
|
+
if (methodName == "DEPTH_ATTACHMENT") { return {0x8D00}; }
|
|
487
|
+
if (methodName == "STENCIL_ATTACHMENT") { return {0x8D20}; }
|
|
488
|
+
if (methodName == "DEPTH_STENCIL_ATTACHMENT") { return {0x821A}; }
|
|
489
|
+
if (methodName == "NONE") { return {}; }
|
|
490
|
+
|
|
491
|
+
/* Pixel formats */
|
|
492
|
+
|
|
493
|
+
/* Pixel types */
|
|
494
|
+
|
|
495
|
+
if (methodName == "FRAMEBUFFER_COMPLETE") { return {0x8CD5}; }
|
|
496
|
+
if (methodName == "FRAMEBUFFER_INCOMPLETE_ATTACHMENT") { return {0x8CD6}; }
|
|
497
|
+
if (methodName == "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT") { return {0x8CD7}; }
|
|
498
|
+
|
|
499
|
+
/* Pixel types */
|
|
500
|
+
|
|
501
|
+
/* Shaders */
|
|
502
|
+
|
|
503
|
+
if (methodName == "FRAMEBUFFER_INCOMPLETE_DIMENSIONS") { return {0x8CD9}; }
|
|
504
|
+
if (methodName == "FRAMEBUFFER_UNSUPPORTED") { return {0x8CDD}; }
|
|
505
|
+
if (methodName == "FRAMEBUFFER_BINDING") { return {0x8CA6}; }
|
|
506
|
+
if (methodName == "RENDERBUFFER_BINDING") { return {0x8CA7}; }
|
|
507
|
+
if (methodName == "MAX_RENDERBUFFER_SIZE") { return {0x84E8}; }
|
|
508
|
+
if (methodName == "INVALID_FRAMEBUFFER_OPERATION") { return {0x0506}; }
|
|
509
|
+
if (methodName == "UNPACK_FLIP_Y_WEBGL") { return {0x9240}; }
|
|
510
|
+
if (methodName == "UNPACK_PREMULTIPLY_ALPHA_WEBGL") { return {0x9241}; }
|
|
511
|
+
if (methodName == "UNPACK_COLORSPACE_CONVERSION_WEBGL") { return {0x9243}; }
|
|
512
|
+
|
|
513
|
+
return jsi::Value::undefined();
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
};
|