@nativescript/canvas 2.0.0-alpha.20 → 2.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +2 -0
- package/Canvas/common.js +6 -0
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +0 -2
- package/Canvas/index.android.js +8 -22
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +7 -0
- package/Canvas/index.ios.d.ts +0 -2
- package/Canvas/index.ios.js +7 -26
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +0 -2
- package/Canvas2D/CanvasRenderingContext2D/index.js +120 -138
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +3 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +5 -5
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +34 -39
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +23 -29
- package/ImageBitmap/index.js.map +1 -1
- package/SVG/SVG.js +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +0 -9
- package/WebGL/WebGLExtensions/index.js +17 -74
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +0 -2
- package/WebGL/WebGLRenderingContext/common.js +0 -10
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.js +159 -298
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +107 -195
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +5 -5
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs.map +1 -1
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs.map +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +87 -57
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +142 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2589 -110
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +1174 -89
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +174 -114
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +142 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2589 -110
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +1174 -89
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +1174 -89
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +3 -0
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +186 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1582 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +7 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +304 -38
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +44 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +22 -16
- package/platforms/ios/src/cpp/JSICallback.h +61 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +25 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +21 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +188 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +20 -14
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +20 -11
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +26 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2402 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +264 -21
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +203 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +26 -12
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +800 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +172 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +449 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +41 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +50 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +93 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +46 -10
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +40 -5
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6691 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +261 -390
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +17 -16
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +15 -36
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +66 -11
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +44 -8
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +25 -12
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +25 -5
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +25 -5
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +323 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +36 -15
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +38 -15
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +41 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +43 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +126 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -12
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4517 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +139 -343
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +40 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +44 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +42 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +43 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1972
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4551
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
#pragma process_pending_includes
|
|
7
7
|
|
|
8
8
|
#include <vector>
|
|
9
|
-
#include "
|
|
10
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
11
|
-
#import <NativeScript/JSIRuntime.h>
|
|
12
|
-
#include "VecMutableBuffer.h"
|
|
9
|
+
#include "Common.h"
|
|
13
10
|
|
|
14
11
|
#include "WebGLRenderingContextBase.h"
|
|
15
12
|
|
|
@@ -20,7 +17,7 @@
|
|
|
20
17
|
#include "ImageBitmapImpl.h"
|
|
21
18
|
#include "RafImpl.h"
|
|
22
19
|
|
|
23
|
-
#include "
|
|
20
|
+
#include "CanvasRenderingContext2DImpl.h"
|
|
24
21
|
|
|
25
22
|
#include "WebGLBuffer.h"
|
|
26
23
|
#include "WebGLFramebuffer.h"
|
|
@@ -59,459 +56,333 @@
|
|
|
59
56
|
#include "extensions/OES_fbo_render_mipmap.h"
|
|
60
57
|
#include "gl.h"
|
|
61
58
|
|
|
62
|
-
|
|
63
|
-
using namespace org::nativescript::canvas;
|
|
64
|
-
|
|
65
|
-
class JSI_EXPORT WebGLRenderingContext : public WebGLRenderingContextBase {
|
|
59
|
+
class WebGLRenderingContext : public WebGLRenderingContextBase {
|
|
66
60
|
public:
|
|
67
61
|
|
|
68
|
-
WebGLRenderingContext(
|
|
62
|
+
WebGLRenderingContext(WebGLState* state);
|
|
69
63
|
|
|
70
|
-
WebGLRenderingContext(
|
|
64
|
+
WebGLRenderingContext(WebGLState* state, WebGLRenderingVersion version);
|
|
71
65
|
|
|
72
|
-
|
|
66
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate);
|
|
73
67
|
|
|
74
|
-
|
|
68
|
+
static v8::Local<v8::Object>
|
|
69
|
+
NewInstance(v8::Isolate *isolate, WebGLRenderingContext *renderingContext) {
|
|
70
|
+
auto context = isolate->GetCurrentContext();
|
|
71
|
+
v8::EscapableHandleScope scope(isolate);
|
|
72
|
+
auto object = WebGLRenderingContext::GetCtor(isolate)->GetFunction(
|
|
73
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
74
|
+
SetNativeType(isolate, object, NativeType::WebGLRenderingContextBase);
|
|
75
|
+
auto ext = v8::External::New(isolate, renderingContext);
|
|
76
|
+
object->SetInternalField(0, ext);
|
|
77
|
+
return scope.Escape(object);
|
|
78
|
+
}
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
rust::Box<WebGLResult> result);
|
|
80
|
+
static WebGLRenderingContext *GetPointer(const v8::Local<v8::Object> &object);
|
|
78
81
|
|
|
79
|
-
static inline jsi::Value GetProperty(const std::string &methodName) {
|
|
80
|
-
if (methodName == "DEPTH_BUFFER_BIT") { return {0x00000100}; }
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
static void SetConstants(v8::Isolate *isolate, const v8::Local<v8::ObjectTemplate> &tmpl);
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
static void
|
|
86
|
+
SetProps(v8::Isolate *isolate, const v8::Local<v8::ObjectTemplate> &tmpl);
|
|
85
87
|
|
|
86
|
-
|
|
88
|
+
static void SetMethods(v8::Isolate *isolate,
|
|
89
|
+
const v8::Local<v8::ObjectTemplate> &tmpl);
|
|
87
90
|
|
|
88
|
-
if (methodName == "LINES") { return {0x0001}; }
|
|
89
91
|
|
|
90
|
-
|
|
92
|
+
v8::Local<v8::Value> GetParameterInternal(v8::Isolate *isolate, uint32_t pnameValue,
|
|
93
|
+
WebGLResult* result);
|
|
91
94
|
|
|
92
|
-
|
|
95
|
+
static void GetDrawingBufferWidth(v8::Local<v8::String> name,
|
|
96
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
93
97
|
|
|
94
|
-
|
|
98
|
+
static void GetFlipY(v8::Local<v8::String> name,
|
|
99
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
95
100
|
|
|
96
|
-
|
|
101
|
+
static void GetDrawingBufferHeight(v8::Local<v8::String> name,
|
|
102
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
97
103
|
|
|
98
|
-
|
|
104
|
+
static void __Resized(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
99
105
|
|
|
100
|
-
|
|
106
|
+
static void __StartRaf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
101
107
|
|
|
102
|
-
|
|
108
|
+
static void __StopRaf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
103
109
|
|
|
104
|
-
|
|
110
|
+
static void ActiveTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
105
111
|
|
|
106
|
-
|
|
112
|
+
static void AttachShader(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
107
113
|
|
|
108
|
-
|
|
114
|
+
static void BindAttribLocation(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
109
115
|
|
|
110
|
-
|
|
116
|
+
static void BindBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
111
117
|
|
|
112
|
-
|
|
118
|
+
static void BindFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
113
119
|
|
|
114
|
-
|
|
120
|
+
static void BindRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
115
121
|
|
|
116
|
-
|
|
122
|
+
static void BindTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
117
123
|
|
|
118
|
-
|
|
124
|
+
static void BlendColor(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
119
125
|
|
|
120
|
-
|
|
126
|
+
static void BlendEquationSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
121
127
|
|
|
128
|
+
static void BlendEquation(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
122
129
|
|
|
123
|
-
|
|
124
|
-
if (methodName == "ONE_MINUS_CONSTANT_COLOR") { return {0x8002}; }
|
|
125
|
-
if (methodName == "CONSTANT_ALPHA") { return {0x8003}; }
|
|
126
|
-
if (methodName == "ONE_MINUS_CONSTANT_ALPHA") { return {0x8004}; }
|
|
130
|
+
static void BlendFuncSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
127
131
|
|
|
132
|
+
static void BlendFunc(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
128
133
|
|
|
129
|
-
|
|
134
|
+
static void BufferData(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
130
135
|
|
|
131
|
-
|
|
132
|
-
if (methodName == "FUNC_SUBTRACT") { return {0x800A}; }
|
|
133
|
-
if (methodName == "FUNC_REVERSE_SUBTRACT") { return {0x800B}; }
|
|
134
|
-
if (methodName == "BLEND_EQUATION") { return {0x8009}; }
|
|
135
|
-
if (methodName == "BLEND_EQUATION_RGB") { return {0x8009}; }
|
|
136
|
-
if (methodName == "BLEND_EQUATION_ALPHA") { return {0x883D}; }
|
|
136
|
+
static void BufferSubData(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
137
137
|
|
|
138
|
+
static void CheckFramebufferStatus(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
138
139
|
|
|
139
|
-
|
|
140
|
-
if (methodName == "BLEND_SRC_RGB") { return {0x80C9}; }
|
|
141
|
-
if (methodName == "BLEND_DST_ALPHA") { return {0x80CA}; }
|
|
140
|
+
static void ClearColor(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
142
141
|
|
|
142
|
+
static void ClearDepth(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
if (methodName == "BLEND_COLOR") { return {0x8005}; }
|
|
146
|
-
if (methodName == "ARRAY_BUFFER_BINDING") { return {0x8894}; }
|
|
144
|
+
static void ClearStencil(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
147
145
|
|
|
146
|
+
static void Clear(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
148
147
|
|
|
149
|
-
|
|
150
|
-
if (methodName == "LINE_WIDTH") { return {0x0B21}; }
|
|
151
|
-
if (methodName == "ALIASED_POINT_SIZE_RANGE") { return {0x846D}; }
|
|
148
|
+
static void ColorMask(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
152
149
|
|
|
153
|
-
|
|
154
|
-
if (methodName == "CULL_FACE_MODE") { return {0x0B45}; }
|
|
155
|
-
if (methodName == "FRONT_FACE") { return {0x0B46}; }
|
|
150
|
+
static void Commit(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
156
151
|
|
|
157
|
-
|
|
158
|
-
if (methodName == "DEPTH_WRITEMASK") { return {0x0B72}; }
|
|
159
|
-
if (methodName == "DEPTH_CLEAR_VALUE") { return {0x0B73}; }
|
|
152
|
+
static void CompileShader(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
160
153
|
|
|
161
|
-
|
|
162
|
-
if (methodName == "STENCIL_CLEAR_VALUE") { return {0x0B91}; }
|
|
163
|
-
if (methodName == "STENCIL_FUNC") { return {0x0B92}; }
|
|
154
|
+
static void CompressedTexImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
164
155
|
|
|
165
|
-
|
|
166
|
-
if (methodName == "STENCIL_PASS_DEPTH_FAIL") { return {0x0B95}; }
|
|
167
|
-
if (methodName == "STENCIL_PASS_DEPTH_PASS") { return {0x0B96}; }
|
|
156
|
+
static void CompressedTexSubImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
168
157
|
|
|
169
|
-
|
|
170
|
-
if (methodName == "STENCIL_VALUE_MASK") { return {0x0B93}; }
|
|
171
|
-
if (methodName == "STENCIL_WRITEMASK") { return {0x0B98}; }
|
|
158
|
+
static void CopyTexImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
172
159
|
|
|
173
|
-
|
|
174
|
-
if (methodName == "STENCIL_BACK_FAIL") { return {0x8801}; }
|
|
175
|
-
if (methodName == "STENCIL_BACK_PASS_DEPTH_FAIL") { return {0x8802}; }
|
|
160
|
+
static void CopyTexSubImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
176
161
|
|
|
177
|
-
|
|
178
|
-
if (methodName == "STENCIL_BACK_REF") { return {0x8CA3}; }
|
|
179
|
-
if (methodName == "STENCIL_BACK_VALUE_MASK") { return {0x8CA4}; }
|
|
180
|
-
if (methodName == "STENCIL_BACK_WRITEMASK") { return {0x8CA5}; }
|
|
162
|
+
static void CreateBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
181
163
|
|
|
182
|
-
|
|
183
|
-
if (methodName == "SCISSOR_BOX") { return {0x0C10}; }
|
|
184
|
-
if (methodName == "COLOR_CLEAR_VALUE") { return {0x0C22}; }
|
|
185
|
-
if (methodName == "COLOR_WRITEMASK") { return {0x0C23}; }
|
|
164
|
+
static void CreateFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
186
165
|
|
|
187
|
-
|
|
188
|
-
if (methodName == "PACK_ALIGNMENT") { return {0x0D05}; }
|
|
189
|
-
if (methodName == "MAX_TEXTURE_SIZE") { return {0x0D33}; }
|
|
166
|
+
static void CreateProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
190
167
|
|
|
168
|
+
static void CreateRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
191
169
|
|
|
192
|
-
|
|
193
|
-
if (methodName == "SUBPIXEL_BITS") { return {0x0D50}; }
|
|
170
|
+
static void CreateShader(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
194
171
|
|
|
195
|
-
|
|
196
|
-
if (methodName == "GREEN_BITS") { return {0x0D53}; }
|
|
197
|
-
if (methodName == "BLUE_BITS") { return {0x0D54}; }
|
|
198
|
-
if (methodName == "ALPHA_BITS") { return {0x0D55}; }
|
|
172
|
+
static void CreateTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
199
173
|
|
|
200
|
-
|
|
201
|
-
if (methodName == "POLYGON_OFFSET_UNITS") { return {0x2A00}; }
|
|
202
|
-
if (methodName == "POLYGON_OFFSET_FACTOR") { return {0x8038}; }
|
|
174
|
+
static void CullFace(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
203
175
|
|
|
204
|
-
|
|
205
|
-
if (methodName == "SAMPLE_BUFFERS") { return {0x80A8}; }
|
|
206
|
-
if (methodName == "SAMPLES") { return {0x80A9}; }
|
|
207
|
-
if (methodName == "SAMPLE_COVERAGE_VALUE") { return {0x80AA}; }
|
|
176
|
+
static void DeleteBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
208
177
|
|
|
209
|
-
|
|
210
|
-
if (methodName == "COMPRESSED_TEXTURE_FORMATS") { return {0x86A3}; }
|
|
211
|
-
if (methodName == "VENDOR") { return {0x1F00}; }
|
|
212
|
-
if (methodName == "RENDERER") { return {0x1F01}; }
|
|
178
|
+
static void DeleteFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
213
179
|
|
|
214
|
-
|
|
215
|
-
if (methodName == "IMPLEMENTATION_COLOR_READ_TYPE") { return {0x8B9A}; }
|
|
216
|
-
if (methodName == "IMPLEMENTATION_COLOR_READ_FORMAT") { return {0x8B9B}; }
|
|
217
|
-
if (methodName == "BROWSER_DEFAULT_WEBGL") { return {0x9244}; }
|
|
180
|
+
static void DeleteProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
218
181
|
|
|
219
|
-
|
|
220
|
-
if (methodName == "STREAM_DRAW") { return {0x88E0}; }
|
|
221
|
-
if (methodName == "DYNAMIC_DRAW") { return {0x88E8}; }
|
|
222
|
-
if (methodName == "ARRAY_BUFFER") { return {0x8892}; }
|
|
182
|
+
static void DeleteRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
223
183
|
|
|
224
|
-
|
|
225
|
-
if (methodName == "BUFFER_SIZE") { return {0x8764}; }
|
|
226
|
-
if (methodName == "BUFFER_USAGE") { return {0x8765}; }
|
|
227
|
-
if (methodName == "CURRENT_VERTEX_ATTRIB") { return {0x8626}; }
|
|
184
|
+
static void DeleteShader(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
228
185
|
|
|
186
|
+
static void DeleteTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
229
187
|
|
|
230
|
-
|
|
231
|
-
if (methodName == "VERTEX_ATTRIB_ARRAY_SIZE") { return {0x8623}; }
|
|
232
|
-
if (methodName == "VERTEX_ATTRIB_ARRAY_STRIDE") { return {0x8624}; }
|
|
233
|
-
if (methodName == "VERTEX_ATTRIB_ARRAY_TYPE") { return {0x8625}; }
|
|
234
|
-
if (methodName == "VERTEX_ATTRIB_ARRAY_NORMALIZED") { return {0x886A}; }
|
|
235
|
-
if (methodName == "VERTEX_ATTRIB_ARRAY_POINTER") { return {0x8645}; }
|
|
236
|
-
if (methodName == "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING") { return {0x889F}; }
|
|
188
|
+
static void DepthFunc(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
237
189
|
|
|
238
|
-
|
|
239
|
-
if (methodName == "FRONT") { return {0x0404}; }
|
|
240
|
-
if (methodName == "BACK") { return {0x0405}; }
|
|
241
|
-
if (methodName == "FRONT_AND_BACK") { return {0x0408}; }
|
|
242
|
-
|
|
243
|
-
if (methodName == "BLEND") { return {0x0BE2}; }
|
|
244
|
-
if (methodName == "DEPTH_TEST") { return {0x0B71}; }
|
|
245
|
-
if (methodName == "DITHER") { return {0x0BD0}; }
|
|
246
|
-
if (methodName == "POLYGON_OFFSET_FILL") { return {0x8037}; }
|
|
247
|
-
|
|
248
|
-
if (methodName == "SAMPLE_ALPHA_TO_COVERAGE") { return {0x809E}; }
|
|
249
|
-
if (methodName == "SAMPLE_COVERAGE") { return {0x80A0}; }
|
|
250
|
-
if (methodName == "SCISSOR_TEST") { return {0x0C11}; }
|
|
251
|
-
if (methodName == "STENCIL_TEST") { return {0x0B90}; }
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/* Errors */
|
|
255
|
-
|
|
256
|
-
if (methodName == "NO_ERROR") { return {0}; }
|
|
257
|
-
if (methodName == "INVALID_ENUM") { return {0x0500}; }
|
|
258
|
-
if (methodName == "INVALID_VALUE") { return {0x0501}; }
|
|
259
|
-
if (methodName == "INVALID_OPERATION") { return {0x0502}; }
|
|
260
|
-
|
|
261
|
-
if (methodName == "OUT_OF_MEMORY") { return {0x0505}; }
|
|
262
|
-
if (methodName == "CONTEXT_LOST_WEBGL") { return {0x9242}; }
|
|
263
|
-
if (methodName == "CW") { return {0x0900}; }
|
|
264
|
-
if (methodName == "CCW") { return {0x0901}; }
|
|
265
|
-
|
|
266
|
-
if (methodName == "DONT_CARE") { return {0x1100}; }
|
|
267
|
-
if (methodName == "FASTEST") { return {0x1101}; }
|
|
268
|
-
if (methodName == "NICEST") { return {0x1102}; }
|
|
269
|
-
if (methodName == "GENERATE_MIPMAP_HINT") { return {0x8192}; }
|
|
270
|
-
|
|
271
|
-
if (methodName == "BYTE") { return {0x1400}; }
|
|
272
|
-
if (methodName == "UNSIGNED_BYTE") { return {0x1401}; }
|
|
273
|
-
if (methodName == "SHORT") { return {0x1402}; }
|
|
274
|
-
if (methodName == "UNSIGNED_SHORT") { return {0x1403}; }
|
|
275
|
-
|
|
276
|
-
if (methodName == "INT") { return {0x1404}; }
|
|
277
|
-
if (methodName == "UNSIGNED_INT") { return {0x1405}; }
|
|
278
|
-
if (methodName == "FLOAT") { return {0x1406}; }
|
|
279
|
-
if (methodName == "DEPTH_COMPONENT") { return {0x1902}; }
|
|
280
|
-
|
|
281
|
-
if (methodName == "ALPHA") { return {0x1906}; }
|
|
282
|
-
if (methodName == "RGB") { return {0x1907}; }
|
|
283
|
-
|
|
284
|
-
/* Clearing buffers */
|
|
285
|
-
|
|
286
|
-
if (methodName == "RGBA") { return {0x1908}; }
|
|
287
|
-
if (methodName == "LUMINANCE") { return {0x1909}; }
|
|
288
|
-
if (methodName == "LUMINANCE_ALPHA") { return {0x190A}; }
|
|
289
|
-
|
|
290
|
-
/* Clearing buffers */
|
|
291
|
-
|
|
292
|
-
/* Rendering primitives */
|
|
293
|
-
|
|
294
|
-
if (methodName == "UNSIGNED_SHORT_4_4_4_4") { return {0x8033}; }
|
|
295
|
-
if (methodName == "UNSIGNED_SHORT_5_5_5_1") { return {0x8034}; }
|
|
296
|
-
if (methodName == "UNSIGNED_SHORT_5_6_5") { return {0x8363}; }
|
|
297
|
-
if (methodName == "FRAGMENT_SHADER") { return {0x8B30}; }
|
|
298
|
-
if (methodName == "VERTEX_SHADER") { return {0x8B31}; }
|
|
299
|
-
if (methodName == "COMPILE_STATUS") { return {0x8B81}; }
|
|
300
|
-
if (methodName == "DELETE_STATUS") { return {0x8B80}; }
|
|
301
|
-
|
|
302
|
-
/* Rendering primitives */
|
|
303
|
-
|
|
304
|
-
/* Blending modes */
|
|
305
|
-
|
|
306
|
-
if (methodName == "LINK_STATUS") { return {0x8B82}; }
|
|
307
|
-
if (methodName == "VALIDATE_STATUS") { return {0x8B83}; }
|
|
308
|
-
if (methodName == "ATTACHED_SHADERS") { return {0x8B85}; }
|
|
309
|
-
if (methodName == "ACTIVE_ATTRIBUTES") { return {0x8B89}; }
|
|
310
|
-
if (methodName == "ACTIVE_UNIFORMS") { return {0x8B86}; }
|
|
311
|
-
if (methodName == "MAX_VERTEX_ATTRIBS") { return {0x8869}; }
|
|
312
|
-
if (methodName == "MAX_VERTEX_UNIFORM_VECTORS") { return {0x8DFB}; }
|
|
313
|
-
if (methodName == "MAX_VARYING_VECTORS") { return {0x8DFC}; }
|
|
314
|
-
if (methodName == "MAX_COMBINED_TEXTURE_IMAGE_UNITS") { return {0x8B4D}; }
|
|
315
|
-
if (methodName == "MAX_VERTEX_TEXTURE_IMAGE_UNITS") { return {0x8B4C}; }
|
|
316
|
-
if (methodName == "MAX_TEXTURE_IMAGE_UNITS") { return {0x8872}; }
|
|
317
|
-
if (methodName == "MAX_FRAGMENT_UNIFORM_VECTORS") { return {0x8DFD}; }
|
|
318
|
-
if (methodName == "SHADER_TYPE") { return {0x8B4F}; }
|
|
319
|
-
if (methodName == "SHADING_LANGUAGE_VERSION") { return {0x8B8C}; }
|
|
320
|
-
if (methodName == "CURRENT_PROGRAM") { return {0x8B8D}; }
|
|
321
|
-
|
|
322
|
-
/* Blending modes */
|
|
323
|
-
|
|
324
|
-
if (methodName == "NEVER") { return {0x0200}; }
|
|
325
|
-
if (methodName == "LESS") { return {0x0201}; }
|
|
326
|
-
if (methodName == "EQUAL") { return {0x0202}; }
|
|
327
|
-
|
|
328
|
-
/* Blending equations */
|
|
329
|
-
|
|
330
|
-
/* Getting GL parameter information */
|
|
331
|
-
|
|
332
|
-
if (methodName == "LEQUAL") { return {0x0203}; }
|
|
333
|
-
if (methodName == "GREATER") { return {0x0204}; }
|
|
334
|
-
if (methodName == "NOTEQUAL") { return {0x0205}; }
|
|
335
|
-
if (methodName == "GEQUAL") { return {0x0206}; }
|
|
336
|
-
if (methodName == "ALWAYS") { return {0x0207}; }
|
|
337
|
-
if (methodName == "KEEP") { return {0x1E00}; }
|
|
338
|
-
if (methodName == "REPLACE") { return {0x1E01}; }
|
|
339
|
-
if (methodName == "INCR") { return {0x1E02}; }
|
|
340
|
-
if (methodName == "DECR") { return {0x1E03}; }
|
|
341
|
-
if (methodName == "INVERT") { return {0x150A}; }
|
|
342
|
-
if (methodName == "INCR_WRAP") { return {0x8507}; }
|
|
343
|
-
if (methodName == "DECR_WRAP") { return {0x8508}; }
|
|
344
|
-
if (methodName == "NEAREST") { return {0x2600}; }
|
|
345
|
-
if (methodName == "LINEAR") { return {0x2601}; }
|
|
346
|
-
if (methodName == "NEAREST_MIPMAP_NEAREST") { return {0x2700}; }
|
|
347
|
-
if (methodName == "LINEAR_MIPMAP_NEAREST") { return {0x2701}; }
|
|
348
|
-
if (methodName == "NEAREST_MIPMAP_LINEAR") { return {0x2702}; }
|
|
349
|
-
if (methodName == "LINEAR_MIPMAP_LINEAR") { return {0x2703}; }
|
|
350
|
-
if (methodName == "TEXTURE_MAG_FILTER") { return {0x2800}; }
|
|
351
|
-
if (methodName == "TEXTURE_MIN_FILTER") { return {0x2801}; }
|
|
352
|
-
if (methodName == "TEXTURE_WRAP_S") { return {0x2802}; }
|
|
353
|
-
if (methodName == "TEXTURE_WRAP_T") { return {0x2803}; }
|
|
354
|
-
if (methodName == "TEXTURE_2D") { return {0x0DE1}; }
|
|
355
|
-
if (methodName == "TEXTURE") { return {0x1702}; }
|
|
356
|
-
if (methodName == "TEXTURE_CUBE_MAP") { return {0x8513}; }
|
|
357
|
-
if (methodName == "TEXTURE_BINDING_CUBE_MAP") { return {0x8514}; }
|
|
358
|
-
if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_X") { return {0x8515}; }
|
|
359
|
-
if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_X") { return {0x8516}; }
|
|
360
|
-
if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_Y") { return {0x8517}; }
|
|
361
|
-
if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_Y") { return {0x8518}; }
|
|
362
|
-
if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_Z") { return {0x8519}; }
|
|
363
|
-
if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_Z") { return {0x851A}; }
|
|
364
|
-
if (methodName == "MAX_CUBE_MAP_TEXTURE_SIZE") { return {0x851C}; }
|
|
365
|
-
if (methodName == "TEXTURE0") { return {0x84C0}; }
|
|
366
|
-
if (methodName == "TEXTURE1") { return {0x84C1}; }
|
|
367
|
-
if (methodName == "TEXTURE2") { return {0x84C2}; }
|
|
368
|
-
if (methodName == "TEXTURE3") { return {0x84C3}; }
|
|
369
|
-
if (methodName == "TEXTURE4") { return {0x84C4}; }
|
|
370
|
-
if (methodName == "TEXTURE5") { return {0x84C5}; }
|
|
371
|
-
if (methodName == "TEXTURE6") { return {0x84C6}; }
|
|
372
|
-
if (methodName == "TEXTURE7") { return {0x84C7}; }
|
|
373
|
-
if (methodName == "TEXTURE8") { return {0x84C8}; }
|
|
374
|
-
if (methodName == "TEXTURE9") { return {0x84C9}; }
|
|
375
|
-
if (methodName == "TEXTURE10") { return {0x84CA}; }
|
|
376
|
-
if (methodName == "TEXTURE11") { return {0x84CB}; }
|
|
377
|
-
if (methodName == "TEXTURE12") { return {0x84CC}; }
|
|
378
|
-
if (methodName == "TEXTURE13") { return {0x84CD}; }
|
|
379
|
-
if (methodName == "TEXTURE14") { return {0x84CE}; }
|
|
380
|
-
if (methodName == "TEXTURE15") { return {0x84CF}; }
|
|
381
|
-
if (methodName == "TEXTURE16") { return {0x84D0}; }
|
|
382
|
-
if (methodName == "TEXTURE17") { return {0x84D1}; }
|
|
383
|
-
if (methodName == "TEXTURE18") { return {0x84D2}; }
|
|
384
|
-
if (methodName == "TEXTURE19") { return {0x84D3}; }
|
|
385
|
-
if (methodName == "TEXTURE20") { return {0x84D4}; }
|
|
386
|
-
if (methodName == "TEXTURE21") { return {0x84D5}; }
|
|
387
|
-
if (methodName == "TEXTURE22") { return {0x84D6}; }
|
|
388
|
-
if (methodName == "TEXTURE23") { return {0x84D7}; }
|
|
389
|
-
if (methodName == "TEXTURE24") { return {0x84D8}; }
|
|
390
|
-
if (methodName == "TEXTURE25") { return {0x84D9}; }
|
|
391
|
-
if (methodName == "TEXTURE26") { return {0x84DA}; }
|
|
392
|
-
if (methodName == "TEXTURE27") { return {0x84DB}; }
|
|
393
|
-
if (methodName == "TEXTURE28") { return {0x84DC}; }
|
|
394
|
-
if (methodName == "TEXTURE29") { return {0x84DD}; }
|
|
395
|
-
|
|
396
|
-
/* Getting GL parameter information */
|
|
397
|
-
|
|
398
|
-
/* Buffers */
|
|
399
|
-
|
|
400
|
-
if (methodName == "TEXTURE30") { return {0x84DE}; }
|
|
401
|
-
if (methodName == "TEXTURE31") { return {0x84DF}; }
|
|
402
|
-
if (methodName == "ACTIVE_TEXTURE") { return {0x84E0}; }
|
|
403
|
-
if (methodName == "REPEAT") { return {0x2901}; }
|
|
404
|
-
if (methodName == "CLAMP_TO_EDGE") { return {0x812F}; }
|
|
405
|
-
if (methodName == "MIRRORED_REPEAT") { return {0x8370}; }
|
|
406
|
-
if (methodName == "FLOAT_VEC2") { return {0x8B50}; }
|
|
407
|
-
|
|
408
|
-
/* Buffers */
|
|
409
|
-
|
|
410
|
-
/* Vertex attributes */
|
|
411
|
-
|
|
412
|
-
if (methodName == "FLOAT_VEC3") { return {0x8B51}; }
|
|
413
|
-
if (methodName == "FLOAT_VEC4") { return {0x8B52}; }
|
|
414
|
-
if (methodName == "INT_VEC2") { return {0x8B53}; }
|
|
415
|
-
if (methodName == "INT_VEC3") { return {0x8B54}; }
|
|
416
|
-
if (methodName == "INT_VEC4") { return {0x8B55}; }
|
|
417
|
-
if (methodName == "BOOL") { return {0x8B56}; }
|
|
418
|
-
if (methodName == "BOOL_VEC2") { return {0x8B57}; }
|
|
419
|
-
if (methodName == "BOOL_VEC3") { return {0x8B58}; }
|
|
420
|
-
|
|
421
|
-
/* Vertex attributes */
|
|
422
|
-
|
|
423
|
-
/* Culling */
|
|
424
|
-
|
|
425
|
-
if (methodName == "BOOL_VEC4") { return {0x8B59}; }
|
|
426
|
-
if (methodName == "FLOAT_MAT2") { return {0x8B5A}; }
|
|
427
|
-
if (methodName == "FLOAT_MAT3") { return {0x8B5B}; }
|
|
428
|
-
if (methodName == "FLOAT_MAT4") { return {0x8B5C}; }
|
|
429
|
-
|
|
430
|
-
/* Culling */
|
|
431
|
-
|
|
432
|
-
/* Enabling and disabling */
|
|
433
|
-
|
|
434
|
-
if (methodName == "SAMPLER_2D") { return {0x8B5E}; }
|
|
435
|
-
if (methodName == "SAMPLER_CUBE") { return {0x8B60}; }
|
|
436
|
-
if (methodName == "LOW_FLOAT") { return {0x8DF0}; }
|
|
437
|
-
if (methodName == "MEDIUM_FLOAT") { return {0x8DF1}; }
|
|
438
|
-
if (methodName == "HIGH_FLOAT") { return {0x8DF2}; }
|
|
439
|
-
if (methodName == "LOW_INT") { return {0x8DF3}; }
|
|
440
|
-
if (methodName == "MEDIUM_INT") { return {0x8DF4}; }
|
|
441
|
-
if (methodName == "HIGH_INT") { return {0x8DF5}; }
|
|
442
|
-
|
|
443
|
-
/* Enabling and disabling */
|
|
444
|
-
|
|
445
|
-
if (methodName == "FRAMEBUFFER") { return {0x8D40}; }
|
|
446
|
-
if (methodName == "RENDERBUFFER") { return {0x8D41}; }
|
|
447
|
-
if (methodName == "RGBA4") { return {0x8056}; }
|
|
448
|
-
if (methodName == "RGB5_A1") { return {0x8057}; }
|
|
449
|
-
if (methodName == "RGB565") { return {0x8D62}; }
|
|
450
|
-
if (methodName == "DEPTH_COMPONENT16") { return {0x81A5}; }
|
|
451
|
-
if (methodName == "STENCIL_INDEX8") { return {0x8D48}; }
|
|
452
|
-
|
|
453
|
-
/* Errors */
|
|
454
|
-
|
|
455
|
-
/* Front face directions */
|
|
456
|
-
|
|
457
|
-
if (methodName == "DEPTH_STENCIL") { return {0x84F9}; }
|
|
458
|
-
if (methodName == "RENDERBUFFER_WIDTH") { return {0x8D42}; }
|
|
459
|
-
|
|
460
|
-
/* Front face directions */
|
|
461
|
-
|
|
462
|
-
/* Hints */
|
|
463
|
-
|
|
464
|
-
if (methodName == "RENDERBUFFER_HEIGHT") { return {0x8D43}; }
|
|
465
|
-
if (methodName == "RENDERBUFFER_INTERNAL_FORMAT") { return {0x8D44}; }
|
|
466
|
-
if (methodName == "RENDERBUFFER_RED_SIZE") { return {0x8D50}; }
|
|
467
|
-
if (methodName == "RENDERBUFFER_GREEN_SIZE") { return {0x8D51}; }
|
|
468
|
-
|
|
469
|
-
/* Hints */
|
|
470
|
-
|
|
471
|
-
/* Data types */
|
|
472
|
-
|
|
473
|
-
if (methodName == "RENDERBUFFER_BLUE_SIZE") { return {0x8D52}; }
|
|
474
|
-
if (methodName == "RENDERBUFFER_ALPHA_SIZE") { return {0x8D53}; }
|
|
475
|
-
if (methodName == "RENDERBUFFER_DEPTH_SIZE") { return {0x8D54}; }
|
|
476
|
-
if (methodName == "RENDERBUFFER_STENCIL_SIZE") { return {0x8D55}; }
|
|
477
|
-
if (methodName == "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE") { return {0x8CD0}; }
|
|
478
|
-
if (methodName == "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME") { return {0x8CD1}; }
|
|
479
|
-
if (methodName == "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL") { return {0x8CD2}; }
|
|
190
|
+
static void DepthMask(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
480
191
|
|
|
481
|
-
|
|
192
|
+
static void DepthRange(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
482
193
|
|
|
483
|
-
|
|
194
|
+
static void DetachShader(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
484
195
|
|
|
485
|
-
|
|
486
|
-
if (methodName == "COLOR_ATTACHMENT0") { return {0x8CE0}; }
|
|
487
|
-
if (methodName == "DEPTH_ATTACHMENT") { return {0x8D00}; }
|
|
488
|
-
if (methodName == "STENCIL_ATTACHMENT") { return {0x8D20}; }
|
|
489
|
-
if (methodName == "DEPTH_STENCIL_ATTACHMENT") { return {0x821A}; }
|
|
490
|
-
if (methodName == "NONE") { return {}; }
|
|
196
|
+
static void DisableVertexAttribArray(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
491
197
|
|
|
492
|
-
|
|
198
|
+
static void Disable(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
493
199
|
|
|
494
|
-
|
|
200
|
+
static void DrawArrays(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
495
201
|
|
|
496
|
-
|
|
497
|
-
if (methodName == "FRAMEBUFFER_INCOMPLETE_ATTACHMENT") { return {0x8CD6}; }
|
|
498
|
-
if (methodName == "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT") { return {0x8CD7}; }
|
|
202
|
+
static void DrawElements(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
499
203
|
|
|
500
|
-
|
|
204
|
+
static void EnableVertexAttribArray(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
501
205
|
|
|
502
|
-
|
|
206
|
+
static void Enable(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
503
207
|
|
|
504
|
-
|
|
505
|
-
if (methodName == "FRAMEBUFFER_UNSUPPORTED") { return {0x8CDD}; }
|
|
506
|
-
if (methodName == "FRAMEBUFFER_BINDING") { return {0x8CA6}; }
|
|
507
|
-
if (methodName == "RENDERBUFFER_BINDING") { return {0x8CA7}; }
|
|
508
|
-
if (methodName == "MAX_RENDERBUFFER_SIZE") { return {0x84E8}; }
|
|
509
|
-
if (methodName == "INVALID_FRAMEBUFFER_OPERATION") { return {0x0506}; }
|
|
510
|
-
if (methodName == "UNPACK_FLIP_Y_WEBGL") { return {0x9240}; }
|
|
511
|
-
if (methodName == "UNPACK_PREMULTIPLY_ALPHA_WEBGL") { return {0x9241}; }
|
|
512
|
-
if (methodName == "UNPACK_COLORSPACE_CONVERSION_WEBGL") { return {0x9243}; }
|
|
208
|
+
static void Finish(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
513
209
|
|
|
514
|
-
|
|
515
|
-
|
|
210
|
+
static void Flush(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
211
|
+
|
|
212
|
+
static void FramebufferRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
213
|
+
|
|
214
|
+
static void FramebufferTexture2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
215
|
+
|
|
216
|
+
static void FrontFace(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
217
|
+
|
|
218
|
+
static void GenerateMipmap(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
219
|
+
|
|
220
|
+
static void GetActiveAttrib(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
221
|
+
|
|
222
|
+
static void GetActiveUniform(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
223
|
+
|
|
224
|
+
static void GetAttachedShaders(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
225
|
+
|
|
226
|
+
static void GetAttribLocation(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
227
|
+
|
|
228
|
+
static void GetBufferParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
229
|
+
|
|
230
|
+
static void GetContextAttributes(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
231
|
+
|
|
232
|
+
static void GetError(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
233
|
+
|
|
234
|
+
static void GetExtension(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
235
|
+
|
|
236
|
+
static void GetFramebufferAttachmentParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
237
|
+
|
|
238
|
+
static void GetParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
239
|
+
|
|
240
|
+
static void GetProgramInfoLog(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
241
|
+
|
|
242
|
+
static void GetProgramParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
243
|
+
|
|
244
|
+
static void GetRenderbufferParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
245
|
+
|
|
246
|
+
static void GetShaderInfoLog(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
247
|
+
|
|
248
|
+
static void GetShaderParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
249
|
+
|
|
250
|
+
static void GetShaderPrecisionFormat(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
251
|
+
|
|
252
|
+
static void GetShaderSource(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
253
|
+
|
|
254
|
+
static void GetSupportedExtensions(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
255
|
+
|
|
256
|
+
static void GetTexParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
257
|
+
|
|
258
|
+
static void GetUniformLocation(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
259
|
+
|
|
260
|
+
static void GetUniform(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
261
|
+
|
|
262
|
+
static void GetVertexAttribOffset(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
263
|
+
|
|
264
|
+
static void GetVertexAttrib(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
265
|
+
|
|
266
|
+
static void Hint(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
267
|
+
|
|
268
|
+
static void IsBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
269
|
+
|
|
270
|
+
static void IsContextLost(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
271
|
+
|
|
272
|
+
static void IsEnabled(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
273
|
+
|
|
274
|
+
static void IsFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
275
|
+
|
|
276
|
+
static void IsProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
277
|
+
|
|
278
|
+
static void IsRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
279
|
+
|
|
280
|
+
static void IsShader(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
281
|
+
|
|
282
|
+
static void IsTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
283
|
+
|
|
284
|
+
static void LineWidth(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
285
|
+
|
|
286
|
+
static void LinkProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
287
|
+
|
|
288
|
+
static void PixelStorei(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
289
|
+
|
|
290
|
+
static void PolygonOffset(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
291
|
+
|
|
292
|
+
static void ReadPixels(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
293
|
+
|
|
294
|
+
static void RenderbufferStorage(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
295
|
+
|
|
296
|
+
static void SampleCoverage(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
297
|
+
|
|
298
|
+
static void Scissor(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
299
|
+
|
|
300
|
+
static void ShaderSource(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
301
|
+
|
|
302
|
+
static void StencilFuncSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
303
|
+
|
|
304
|
+
static void StencilFunc(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
305
|
+
|
|
306
|
+
static void StencilMaskSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
307
|
+
|
|
308
|
+
static void StencilMask(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
309
|
+
|
|
310
|
+
static void StencilOpSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
311
|
+
|
|
312
|
+
static void StencilOp(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
313
|
+
|
|
314
|
+
static void TexImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
315
|
+
|
|
316
|
+
static void TexParameterf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
317
|
+
|
|
318
|
+
static void TexParameteri(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
319
|
+
|
|
320
|
+
static void TexSubImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
321
|
+
|
|
322
|
+
static void Uniform1f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
323
|
+
|
|
324
|
+
static void Uniform1iv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
325
|
+
|
|
326
|
+
static void Uniform1fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
327
|
+
|
|
328
|
+
static void Uniform1i(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
329
|
+
|
|
330
|
+
static void Uniform2f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
331
|
+
|
|
332
|
+
static void Uniform2iv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
333
|
+
|
|
334
|
+
static void Uniform2fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
335
|
+
|
|
336
|
+
static void Uniform2i(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
337
|
+
|
|
338
|
+
static void Uniform3f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
339
|
+
|
|
340
|
+
static void Uniform3iv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
341
|
+
|
|
342
|
+
static void Uniform3fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
343
|
+
|
|
344
|
+
static void Uniform3i(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
345
|
+
|
|
346
|
+
static void Uniform4f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
347
|
+
|
|
348
|
+
static void Uniform4iv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
349
|
+
|
|
350
|
+
static void Uniform4fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
351
|
+
|
|
352
|
+
static void Uniform4i(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
353
|
+
|
|
354
|
+
static void UniformMatrix2fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
355
|
+
|
|
356
|
+
static void UniformMatrix3fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
357
|
+
|
|
358
|
+
static void UniformMatrix4fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
359
|
+
|
|
360
|
+
static void UseProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
361
|
+
|
|
362
|
+
static void ValidateProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
363
|
+
|
|
364
|
+
static void VertexAttrib1f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
365
|
+
|
|
366
|
+
static void VertexAttrib1fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
367
|
+
|
|
368
|
+
static void VertexAttrib2f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
369
|
+
|
|
370
|
+
static void VertexAttrib2fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
371
|
+
|
|
372
|
+
static void VertexAttrib3f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
373
|
+
|
|
374
|
+
static void VertexAttrib3fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
375
|
+
|
|
376
|
+
static void VertexAttrib4f(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
377
|
+
|
|
378
|
+
static void VertexAttrib4fv(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
379
|
+
|
|
380
|
+
static void VertexAttribPointer(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
381
|
+
|
|
382
|
+
static void Viewport(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
383
|
+
|
|
384
|
+
static void __ToDataURL(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
385
|
+
|
|
386
|
+
static void __GetSupportedExtensions(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
516
387
|
|
|
517
388
|
};
|