@nativescript/canvas 2.0.0-alpha.49 → 2.0.0-alpha.50
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/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/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/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +219 -166
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +713 -1
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +371 -217
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1270 -4
package/package.json
CHANGED
|
Binary file
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>DebugSymbolsPath</key>
|
|
9
9
|
<string>dSYMs</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>CanvasNative.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>DebugSymbolsPath</key>
|
|
26
23
|
<string>dSYMs</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>CanvasNative.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -435,10 +435,10 @@ v8::CFunction WebGLRenderingContext::fast_delete_program_(
|
|
|
435
435
|
|
|
436
436
|
|
|
437
437
|
v8::CFunction WebGLRenderingContext::fast_delete_renderbuffer_(
|
|
438
|
-
v8::CFunction::Make(WebGLRenderingContext::
|
|
438
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteRenderbuffer));
|
|
439
439
|
|
|
440
440
|
v8::CFunction WebGLRenderingContext::fast_delete_shader_(
|
|
441
|
-
v8::CFunction::Make(WebGLRenderingContext::
|
|
441
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDeleteShader));
|
|
442
442
|
|
|
443
443
|
v8::CFunction WebGLRenderingContext::fast_delete_texture_(
|
|
444
444
|
v8::CFunction::Make(WebGLRenderingContext::FastDeleteTexture));
|
|
@@ -450,6 +450,136 @@ v8::CFunction WebGLRenderingContext::fast_compile_shader_(
|
|
|
450
450
|
v8::CFunction WebGLRenderingContext::fast_framebuffer_texture_2d_(
|
|
451
451
|
v8::CFunction::Make(WebGLRenderingContext::FastFramebufferTexture2D));
|
|
452
452
|
|
|
453
|
+
v8::CFunction WebGLRenderingContext::fast_color_mask_(
|
|
454
|
+
v8::CFunction::Make(WebGLRenderingContext::FastColorMask));
|
|
455
|
+
|
|
456
|
+
v8::CFunction WebGLRenderingContext::fast_copy_tex_image_2d_(
|
|
457
|
+
v8::CFunction::Make(WebGLRenderingContext::FastCopyTexImage2D));
|
|
458
|
+
|
|
459
|
+
v8::CFunction WebGLRenderingContext::fast_copy_tex_sub_image_2d_(
|
|
460
|
+
v8::CFunction::Make(WebGLRenderingContext::FastCopyTexSubImage2D));
|
|
461
|
+
|
|
462
|
+
v8::CFunction WebGLRenderingContext::fast_cull_face_(
|
|
463
|
+
v8::CFunction::Make(WebGLRenderingContext::FastCullFace));
|
|
464
|
+
|
|
465
|
+
v8::CFunction WebGLRenderingContext::fast_depth_func_(
|
|
466
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDepthFunc));
|
|
467
|
+
|
|
468
|
+
v8::CFunction WebGLRenderingContext::fast_depth_mask_(
|
|
469
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDepthMask));
|
|
470
|
+
|
|
471
|
+
v8::CFunction WebGLRenderingContext::fast_depth_range_(
|
|
472
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDepthRange));
|
|
473
|
+
|
|
474
|
+
v8::CFunction WebGLRenderingContext::fast_detach_shader_(
|
|
475
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDetachShader));
|
|
476
|
+
|
|
477
|
+
v8::CFunction WebGLRenderingContext::fast_disable_vertex_attrib_array_(
|
|
478
|
+
v8::CFunction::Make(WebGLRenderingContext::FastDisableVertexAttribArray));
|
|
479
|
+
|
|
480
|
+
v8::CFunction WebGLRenderingContext::fast_finish_(
|
|
481
|
+
v8::CFunction::Make(WebGLRenderingContext::FastFinish));
|
|
482
|
+
|
|
483
|
+
v8::CFunction WebGLRenderingContext::fast_flush_(
|
|
484
|
+
v8::CFunction::Make(WebGLRenderingContext::FastFlush));
|
|
485
|
+
|
|
486
|
+
v8::CFunction WebGLRenderingContext::fast_framebuffer_renderbuffer_(
|
|
487
|
+
v8::CFunction::Make(WebGLRenderingContext::FastFramebufferRenderbuffer));
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
v8::CFunction WebGLRenderingContext::fast_front_face_(
|
|
491
|
+
v8::CFunction::Make(WebGLRenderingContext::FastFrontFace));
|
|
492
|
+
|
|
493
|
+
v8::CFunction WebGLRenderingContext::fast_generate_mipmap_(
|
|
494
|
+
v8::CFunction::Make(WebGLRenderingContext::FastGenerateMipmap));
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
v8::CFunction WebGLRenderingContext::fast_get_vertex_attrib_offset_(
|
|
498
|
+
v8::CFunction::Make(WebGLRenderingContext::FastGetVertexAttribOffset));
|
|
499
|
+
|
|
500
|
+
v8::CFunction WebGLRenderingContext::fast_hint_(
|
|
501
|
+
v8::CFunction::Make(WebGLRenderingContext::FastHint));
|
|
502
|
+
|
|
503
|
+
v8::CFunction WebGLRenderingContext::fast_is_buffer_(
|
|
504
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsBuffer));
|
|
505
|
+
|
|
506
|
+
v8::CFunction WebGLRenderingContext::fast_is_context_lost_(
|
|
507
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsContextLost));
|
|
508
|
+
|
|
509
|
+
v8::CFunction WebGLRenderingContext::fast_is_enabled_(
|
|
510
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsEnabled));
|
|
511
|
+
|
|
512
|
+
v8::CFunction WebGLRenderingContext::fast_is_framebuffer_(
|
|
513
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsFramebuffer));
|
|
514
|
+
|
|
515
|
+
v8::CFunction WebGLRenderingContext::fast_is_program_(
|
|
516
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsProgram));
|
|
517
|
+
|
|
518
|
+
v8::CFunction WebGLRenderingContext::fast_is_renderbuffer_(
|
|
519
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsRenderbuffer));
|
|
520
|
+
|
|
521
|
+
v8::CFunction WebGLRenderingContext::fast_is_shader_(
|
|
522
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsShader));
|
|
523
|
+
|
|
524
|
+
v8::CFunction WebGLRenderingContext::fast_is_texture_(
|
|
525
|
+
v8::CFunction::Make(WebGLRenderingContext::FastIsTexture));
|
|
526
|
+
|
|
527
|
+
v8::CFunction WebGLRenderingContext::fast_line_width_(
|
|
528
|
+
v8::CFunction::Make(WebGLRenderingContext::FastLineWidth));
|
|
529
|
+
|
|
530
|
+
v8::CFunction WebGLRenderingContext::fast_link_program_(
|
|
531
|
+
v8::CFunction::Make(WebGLRenderingContext::FastLinkProgram));
|
|
532
|
+
|
|
533
|
+
v8::CFunction WebGLRenderingContext::fast_pixel_storei_bool_(
|
|
534
|
+
v8::CFunction::Make(WebGLRenderingContext::FastPixelStoreiBool));
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
v8::CFunction WebGLRenderingContext::fast_pixel_storei_(
|
|
538
|
+
v8::CFunction::Make(WebGLRenderingContext::FastPixelStorei));
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
const v8::CFunction fast_pixel_storei_overloads_[] = {
|
|
542
|
+
WebGLRenderingContext::fast_pixel_storei_,
|
|
543
|
+
WebGLRenderingContext::fast_pixel_storei_bool_
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
v8::CFunction WebGLRenderingContext::fast_polygon_offset_(
|
|
547
|
+
v8::CFunction::Make(WebGLRenderingContext::FastPolygonOffset));
|
|
548
|
+
|
|
549
|
+
v8::CFunction WebGLRenderingContext::fast_renderbuffer_storage_(
|
|
550
|
+
v8::CFunction::Make(WebGLRenderingContext::FastRenderbufferStorage));
|
|
551
|
+
|
|
552
|
+
v8::CFunction WebGLRenderingContext::fast_sample_coverage_(
|
|
553
|
+
v8::CFunction::Make(WebGLRenderingContext::FastSampleCoverage));
|
|
554
|
+
|
|
555
|
+
v8::CFunction WebGLRenderingContext::fast_scissor_(
|
|
556
|
+
v8::CFunction::Make(WebGLRenderingContext::FastScissor));
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
v8::CFunction WebGLRenderingContext::fast_stencil_func_separate_(
|
|
560
|
+
v8::CFunction::Make(WebGLRenderingContext::FastStencilFuncSeparate));
|
|
561
|
+
|
|
562
|
+
v8::CFunction WebGLRenderingContext::fast_stencil_func_(
|
|
563
|
+
v8::CFunction::Make(WebGLRenderingContext::FastStencilFunc));
|
|
564
|
+
|
|
565
|
+
v8::CFunction WebGLRenderingContext::fast_stencil_mask_separate_(
|
|
566
|
+
v8::CFunction::Make(WebGLRenderingContext::FastStencilMaskSeparate));
|
|
567
|
+
|
|
568
|
+
v8::CFunction WebGLRenderingContext::fast_stencil_mask_(
|
|
569
|
+
v8::CFunction::Make(WebGLRenderingContext::FastStencilMask));
|
|
570
|
+
|
|
571
|
+
v8::CFunction WebGLRenderingContext::fast_stencil_op_separate_(
|
|
572
|
+
v8::CFunction::Make(WebGLRenderingContext::FastStencilOpSeparate));
|
|
573
|
+
|
|
574
|
+
v8::CFunction WebGLRenderingContext::fast_stencil_op_(
|
|
575
|
+
v8::CFunction::Make(WebGLRenderingContext::FastStencilOp));
|
|
576
|
+
|
|
577
|
+
v8::CFunction WebGLRenderingContext::fast_tex_parameterf_(
|
|
578
|
+
v8::CFunction::Make(WebGLRenderingContext::FastTexParameterf));
|
|
579
|
+
|
|
580
|
+
v8::CFunction WebGLRenderingContext::fast_tex_parameteri_(
|
|
581
|
+
v8::CFunction::Make(WebGLRenderingContext::FastTexParameteri));
|
|
582
|
+
|
|
453
583
|
|
|
454
584
|
WebGLRenderingContext::WebGLRenderingContext(WebGLState *state)
|
|
455
585
|
: WebGLRenderingContextBase(state, WebGLRenderingVersion::V1) {
|
|
@@ -6253,10 +6383,9 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6253
6383
|
|
|
6254
6384
|
SetFastMethod(isolate, tmpl, "clear", Clear, &fast_clear_, v8::Local<v8::Value>());
|
|
6255
6385
|
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
);
|
|
6386
|
+
|
|
6387
|
+
SetFastMethod(isolate, tmpl, "colorMask", ColorMask, &fast_color_mask_, v8::Local<v8::Value>());
|
|
6388
|
+
|
|
6260
6389
|
tmpl->Set(
|
|
6261
6390
|
ConvertToV8String(isolate, "commit"),
|
|
6262
6391
|
v8::FunctionTemplate::New(isolate, &Commit)
|
|
@@ -6274,14 +6403,12 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6274
6403
|
ConvertToV8String(isolate, "compressedTexSubImage2D"),
|
|
6275
6404
|
v8::FunctionTemplate::New(isolate, &CompressedTexSubImage2D)
|
|
6276
6405
|
);
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
tmpl
|
|
6282
|
-
|
|
6283
|
-
v8::FunctionTemplate::New(isolate, &CopyTexSubImage2D)
|
|
6284
|
-
);
|
|
6406
|
+
|
|
6407
|
+
SetFastMethod(isolate, tmpl, "copyTexImage2D", CopyTexImage2D, &fast_copy_tex_image_2d_,
|
|
6408
|
+
v8::Local<v8::Value>());
|
|
6409
|
+
|
|
6410
|
+
SetFastMethod(isolate, tmpl, "copyTexSubImage2D", CopyTexSubImage2D,
|
|
6411
|
+
&fast_copy_tex_sub_image_2d_, v8::Local<v8::Value>());
|
|
6285
6412
|
|
|
6286
6413
|
tmpl->Set(
|
|
6287
6414
|
ConvertToV8String(isolate, "createBuffer"),
|
|
@@ -6313,12 +6440,8 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6313
6440
|
v8::FunctionTemplate::New(isolate, &CreateTexture)
|
|
6314
6441
|
);
|
|
6315
6442
|
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
ConvertToV8String(isolate, "cullFace"),
|
|
6319
|
-
v8::FunctionTemplate::New(isolate, &CullFace)
|
|
6320
|
-
);
|
|
6321
|
-
|
|
6443
|
+
SetFastMethod(isolate, tmpl, "cullFace", CullFace, &fast_cull_face_,
|
|
6444
|
+
v8::Local<v8::Value>());
|
|
6322
6445
|
|
|
6323
6446
|
SetFastMethod(isolate, tmpl, "deleteBuffer", DeleteBuffer, &fast_delete_buffer_,
|
|
6324
6447
|
v8::Local<v8::Value>());
|
|
@@ -6338,31 +6461,21 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6338
6461
|
SetFastMethod(isolate, tmpl, "deleteTexture", DeleteTexture, &fast_delete_texture_,
|
|
6339
6462
|
v8::Local<v8::Value>());
|
|
6340
6463
|
|
|
6464
|
+
SetFastMethod(isolate, tmpl, "depthFunc", DepthFunc, &fast_depth_func_,
|
|
6465
|
+
v8::Local<v8::Value>());
|
|
6341
6466
|
|
|
6342
|
-
tmpl
|
|
6343
|
-
|
|
6344
|
-
v8::FunctionTemplate::New(isolate, &DepthFunc)
|
|
6345
|
-
);
|
|
6346
|
-
|
|
6347
|
-
tmpl->Set(
|
|
6348
|
-
ConvertToV8String(isolate, "depthMask"),
|
|
6349
|
-
v8::FunctionTemplate::New(isolate, &DepthMask)
|
|
6350
|
-
);
|
|
6467
|
+
SetFastMethod(isolate, tmpl, "depthMask", DepthMask, &fast_depth_mask_,
|
|
6468
|
+
v8::Local<v8::Value>());
|
|
6351
6469
|
|
|
6352
|
-
tmpl
|
|
6353
|
-
|
|
6354
|
-
v8::FunctionTemplate::New(isolate, &DepthRange)
|
|
6355
|
-
);
|
|
6470
|
+
SetFastMethod(isolate, tmpl, "depthRange", DepthRange, &fast_depth_range_,
|
|
6471
|
+
v8::Local<v8::Value>());
|
|
6356
6472
|
|
|
6357
|
-
tmpl
|
|
6358
|
-
|
|
6359
|
-
v8::FunctionTemplate::New(isolate, &DetachShader)
|
|
6360
|
-
);
|
|
6473
|
+
SetFastMethod(isolate, tmpl, "detachShader", DetachShader, &fast_detach_shader_,
|
|
6474
|
+
v8::Local<v8::Value>());
|
|
6361
6475
|
|
|
6362
|
-
tmpl
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
);
|
|
6476
|
+
SetFastMethod(isolate, tmpl, "disableVertexAttribArray", DisableVertexAttribArray,
|
|
6477
|
+
&fast_disable_vertex_attrib_array_,
|
|
6478
|
+
v8::Local<v8::Value>());
|
|
6366
6479
|
|
|
6367
6480
|
SetFastMethod(isolate, tmpl, "disable", Disable, &fast_disable_,
|
|
6368
6481
|
v8::Local<v8::Value>());
|
|
@@ -6374,41 +6487,29 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6374
6487
|
SetFastMethod(isolate, tmpl, "drawElements", DrawElements, &fast_draw_elements_,
|
|
6375
6488
|
v8::Local<v8::Value>());
|
|
6376
6489
|
|
|
6377
|
-
|
|
6378
6490
|
SetFastMethod(isolate, tmpl, "enableVertexAttribArray", EnableVertexAttribArray,
|
|
6379
6491
|
&fast_enable_vertex_attrib_array_, v8::Local<v8::Value>());
|
|
6380
6492
|
|
|
6381
6493
|
SetFastMethod(isolate, tmpl, "enable", Enable, &fast_enable_, v8::Local<v8::Value>());
|
|
6382
6494
|
|
|
6383
|
-
tmpl
|
|
6384
|
-
ConvertToV8String(isolate, "finish"),
|
|
6385
|
-
v8::FunctionTemplate::New(isolate, &Finish)
|
|
6386
|
-
);
|
|
6495
|
+
SetFastMethod(isolate, tmpl, "finish", Finish, &fast_finish_, v8::Local<v8::Value>());
|
|
6387
6496
|
|
|
6388
|
-
tmpl
|
|
6389
|
-
ConvertToV8String(isolate, "flush"),
|
|
6390
|
-
v8::FunctionTemplate::New(isolate, &Flush)
|
|
6391
|
-
);
|
|
6392
|
-
|
|
6393
|
-
tmpl->Set(
|
|
6394
|
-
ConvertToV8String(isolate, "framebufferRenderbuffer"),
|
|
6395
|
-
v8::FunctionTemplate::New(isolate, &FramebufferRenderbuffer)
|
|
6396
|
-
);
|
|
6497
|
+
SetFastMethod(isolate, tmpl, "flush", Flush, &fast_flush_, v8::Local<v8::Value>());
|
|
6397
6498
|
|
|
6499
|
+
SetFastMethod(isolate, tmpl, "framebufferRenderbuffer", FramebufferRenderbuffer,
|
|
6500
|
+
&fast_framebuffer_renderbuffer_, v8::Local<v8::Value>());
|
|
6398
6501
|
|
|
6399
6502
|
SetFastMethod(isolate, tmpl, "framebufferTexture2D", FramebufferTexture2D,
|
|
6400
6503
|
&fast_framebuffer_texture_2d_, v8::Local<v8::Value>());
|
|
6401
6504
|
|
|
6402
6505
|
|
|
6403
|
-
tmpl
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6506
|
+
SetFastMethod(isolate, tmpl, "frontFace", FrontFace,
|
|
6507
|
+
&fast_front_face_, v8::Local<v8::Value>());
|
|
6508
|
+
|
|
6509
|
+
|
|
6510
|
+
SetFastMethod(isolate, tmpl, "generateMipmap", GenerateMipmap,
|
|
6511
|
+
&fast_generate_mipmap_, v8::Local<v8::Value>());
|
|
6407
6512
|
|
|
6408
|
-
tmpl->Set(
|
|
6409
|
-
ConvertToV8String(isolate, "generateMipmap"),
|
|
6410
|
-
v8::FunctionTemplate::New(isolate, &GenerateMipmap)
|
|
6411
|
-
);
|
|
6412
6513
|
|
|
6413
6514
|
tmpl->Set(
|
|
6414
6515
|
ConvertToV8String(isolate, "getActiveAttrib"),
|
|
@@ -6521,10 +6622,8 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6521
6622
|
);
|
|
6522
6623
|
|
|
6523
6624
|
|
|
6524
|
-
tmpl
|
|
6525
|
-
|
|
6526
|
-
v8::FunctionTemplate::New(isolate, &GetVertexAttribOffset)
|
|
6527
|
-
);
|
|
6625
|
+
SetFastMethod(isolate, tmpl, "getVertexAttribOffset", GetVertexAttribOffset,
|
|
6626
|
+
&fast_get_vertex_attrib_offset_, v8::Local<v8::Value>());
|
|
6528
6627
|
|
|
6529
6628
|
|
|
6530
6629
|
tmpl->Set(
|
|
@@ -6532,135 +6631,92 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6532
6631
|
v8::FunctionTemplate::New(isolate, &GetVertexAttrib)
|
|
6533
6632
|
);
|
|
6534
6633
|
|
|
6634
|
+
SetFastMethod(isolate, tmpl, "hint", Hint,
|
|
6635
|
+
&fast_hint_, v8::Local<v8::Value>());
|
|
6535
6636
|
|
|
6536
|
-
tmpl->Set(
|
|
6537
|
-
ConvertToV8String(isolate, "hint"),
|
|
6538
|
-
v8::FunctionTemplate::New(isolate, &Hint)
|
|
6539
|
-
);
|
|
6540
6637
|
|
|
6638
|
+
SetFastMethod(isolate, tmpl, "isBuffer", IsBuffer,
|
|
6639
|
+
&fast_is_buffer_, v8::Local<v8::Value>());
|
|
6541
6640
|
|
|
6542
|
-
tmpl->Set(
|
|
6543
|
-
ConvertToV8String(isolate, "isBuffer"),
|
|
6544
|
-
v8::FunctionTemplate::New(isolate, &IsBuffer)
|
|
6545
|
-
);
|
|
6546
6641
|
|
|
6642
|
+
SetFastMethod(isolate, tmpl, "isContextLost", IsContextLost,
|
|
6643
|
+
&fast_is_context_lost_, v8::Local<v8::Value>());
|
|
6547
6644
|
|
|
6548
|
-
tmpl->Set(
|
|
6549
|
-
ConvertToV8String(isolate, "isContextLost"),
|
|
6550
|
-
v8::FunctionTemplate::New(isolate, &IsContextLost)
|
|
6551
|
-
);
|
|
6552
6645
|
|
|
6646
|
+
SetFastMethod(isolate, tmpl, "isEnabled", IsEnabled,
|
|
6647
|
+
&fast_is_enabled_, v8::Local<v8::Value>());
|
|
6553
6648
|
|
|
6554
|
-
tmpl
|
|
6555
|
-
|
|
6556
|
-
v8::FunctionTemplate::New(isolate, &IsEnabled)
|
|
6557
|
-
);
|
|
6649
|
+
SetFastMethod(isolate, tmpl, "isFramebuffer", IsFramebuffer,
|
|
6650
|
+
&fast_is_framebuffer_, v8::Local<v8::Value>());
|
|
6558
6651
|
|
|
6559
|
-
tmpl
|
|
6560
|
-
|
|
6561
|
-
v8::FunctionTemplate::New(isolate, &IsFramebuffer)
|
|
6562
|
-
);
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
tmpl->Set(
|
|
6566
|
-
ConvertToV8String(isolate, "isProgram"),
|
|
6567
|
-
v8::FunctionTemplate::New(isolate, &IsProgram)
|
|
6568
|
-
);
|
|
6652
|
+
SetFastMethod(isolate, tmpl, "isProgram", IsProgram,
|
|
6653
|
+
&fast_is_program_, v8::Local<v8::Value>());
|
|
6569
6654
|
|
|
6655
|
+
SetFastMethod(isolate, tmpl, "isRenderbuffer", IsRenderbuffer,
|
|
6656
|
+
&fast_is_renderbuffer_, v8::Local<v8::Value>());
|
|
6570
6657
|
|
|
6571
|
-
tmpl
|
|
6572
|
-
|
|
6573
|
-
v8::FunctionTemplate::New(isolate, &IsRenderbuffer)
|
|
6574
|
-
);
|
|
6575
|
-
|
|
6576
|
-
tmpl->Set(
|
|
6577
|
-
ConvertToV8String(isolate, "isShader"),
|
|
6578
|
-
v8::FunctionTemplate::New(isolate, &IsShader)
|
|
6579
|
-
);
|
|
6658
|
+
SetFastMethod(isolate, tmpl, "isShader", IsShader,
|
|
6659
|
+
&fast_is_shader_, v8::Local<v8::Value>());
|
|
6580
6660
|
|
|
6581
6661
|
|
|
6582
|
-
tmpl
|
|
6583
|
-
|
|
6584
|
-
v8::FunctionTemplate::New(isolate, &IsTexture)
|
|
6585
|
-
);
|
|
6662
|
+
SetFastMethod(isolate, tmpl, "isTexture", IsTexture,
|
|
6663
|
+
&fast_is_texture_, v8::Local<v8::Value>());
|
|
6586
6664
|
|
|
6665
|
+
SetFastMethod(isolate, tmpl, "lineWidth", LineWidth,
|
|
6666
|
+
&fast_line_width_, v8::Local<v8::Value>());
|
|
6587
6667
|
|
|
6588
|
-
tmpl->Set(
|
|
6589
|
-
ConvertToV8String(isolate, "lineWidth"),
|
|
6590
|
-
v8::FunctionTemplate::New(isolate, &LineWidth)
|
|
6591
|
-
);
|
|
6592
6668
|
|
|
6669
|
+
SetFastMethod(isolate, tmpl, "linkProgram", LinkProgram,
|
|
6670
|
+
&fast_link_program_, v8::Local<v8::Value>());
|
|
6593
6671
|
|
|
6594
|
-
tmpl
|
|
6595
|
-
|
|
6596
|
-
v8::FunctionTemplate::New(isolate, &LinkProgram)
|
|
6597
|
-
);
|
|
6672
|
+
SetFastMethodWithOverLoads(isolate, tmpl, "pixelStorei", PixelStorei,
|
|
6673
|
+
fast_pixel_storei_overloads_, v8::Local<v8::Value>());
|
|
6598
6674
|
|
|
6599
|
-
tmpl
|
|
6600
|
-
|
|
6601
|
-
v8::FunctionTemplate::New(isolate, &PixelStorei)
|
|
6602
|
-
);
|
|
6675
|
+
SetFastMethod(isolate, tmpl, "polygonOffset", PolygonOffset,
|
|
6676
|
+
&fast_polygon_offset_, v8::Local<v8::Value>());
|
|
6603
6677
|
|
|
6604
|
-
tmpl->Set(
|
|
6605
|
-
ConvertToV8String(isolate, "polygonOffset"),
|
|
6606
|
-
v8::FunctionTemplate::New(isolate, &PolygonOffset)
|
|
6607
|
-
);
|
|
6608
6678
|
|
|
6609
6679
|
tmpl->Set(
|
|
6610
6680
|
ConvertToV8String(isolate, "readPixels"),
|
|
6611
6681
|
v8::FunctionTemplate::New(isolate, &ReadPixels)
|
|
6612
6682
|
);
|
|
6613
6683
|
|
|
6684
|
+
SetFastMethod(isolate, tmpl, "renderbufferStorage", RenderbufferStorage,
|
|
6685
|
+
&fast_renderbuffer_storage_, v8::Local<v8::Value>());
|
|
6614
6686
|
|
|
6615
|
-
tmpl->Set(
|
|
6616
|
-
ConvertToV8String(isolate, "renderbufferStorage"),
|
|
6617
|
-
v8::FunctionTemplate::New(isolate, &RenderbufferStorage)
|
|
6618
|
-
);
|
|
6619
6687
|
|
|
6620
|
-
tmpl
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6688
|
+
SetFastMethod(isolate, tmpl, "sampleCoverage", SampleCoverage,
|
|
6689
|
+
&fast_sample_coverage_, v8::Local<v8::Value>());
|
|
6690
|
+
|
|
6691
|
+
SetFastMethod(isolate, tmpl, "scissor", Scissor,
|
|
6692
|
+
&fast_scissor_, v8::Local<v8::Value>());
|
|
6624
6693
|
|
|
6625
|
-
tmpl->Set(
|
|
6626
|
-
ConvertToV8String(isolate, "scissor"),
|
|
6627
|
-
v8::FunctionTemplate::New(isolate, &Scissor)
|
|
6628
|
-
);
|
|
6629
6694
|
|
|
6630
6695
|
tmpl->Set(
|
|
6631
6696
|
ConvertToV8String(isolate, "shaderSource"),
|
|
6632
6697
|
v8::FunctionTemplate::New(isolate, &ShaderSource)
|
|
6633
6698
|
);
|
|
6634
6699
|
|
|
6635
|
-
tmpl->Set(
|
|
6636
|
-
ConvertToV8String(isolate, "stencilFuncSeparate"),
|
|
6637
|
-
v8::FunctionTemplate::New(isolate, &StencilFuncSeparate)
|
|
6638
|
-
);
|
|
6639
6700
|
|
|
6640
|
-
tmpl
|
|
6641
|
-
|
|
6642
|
-
v8::FunctionTemplate::New(isolate, &StencilFunc)
|
|
6643
|
-
);
|
|
6701
|
+
SetFastMethod(isolate, tmpl, "stencilFuncSeparate", StencilFuncSeparate,
|
|
6702
|
+
&fast_stencil_func_separate_, v8::Local<v8::Value>());
|
|
6644
6703
|
|
|
6645
|
-
tmpl
|
|
6646
|
-
|
|
6647
|
-
v8::FunctionTemplate::New(isolate, &StencilMaskSeparate)
|
|
6648
|
-
);
|
|
6704
|
+
SetFastMethod(isolate, tmpl, "stencilFunc", StencilFunc,
|
|
6705
|
+
&fast_stencil_func_, v8::Local<v8::Value>());
|
|
6649
6706
|
|
|
6650
|
-
tmpl
|
|
6651
|
-
|
|
6652
|
-
v8::FunctionTemplate::New(isolate, &StencilMask)
|
|
6653
|
-
);
|
|
6707
|
+
SetFastMethod(isolate, tmpl, "stencilMaskSeparate", StencilMaskSeparate,
|
|
6708
|
+
&fast_stencil_mask_separate_, v8::Local<v8::Value>());
|
|
6654
6709
|
|
|
6655
|
-
tmpl
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6710
|
+
SetFastMethod(isolate, tmpl, "stencilMask", StencilMask,
|
|
6711
|
+
&fast_stencil_mask_, v8::Local<v8::Value>());
|
|
6712
|
+
|
|
6713
|
+
|
|
6714
|
+
SetFastMethod(isolate, tmpl, "stencilOpSeparate", StencilOpSeparate,
|
|
6715
|
+
&fast_stencil_op_separate_, v8::Local<v8::Value>());
|
|
6659
6716
|
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
);
|
|
6717
|
+
|
|
6718
|
+
SetFastMethod(isolate, tmpl, "stencilOp", StencilOp,
|
|
6719
|
+
&fast_stencil_op_, v8::Local<v8::Value>());
|
|
6664
6720
|
|
|
6665
6721
|
|
|
6666
6722
|
tmpl->Set(
|
|
@@ -6669,16 +6725,13 @@ WebGLRenderingContext::SetMethods(v8::Isolate *isolate, const v8::Local<v8::Obje
|
|
|
6669
6725
|
);
|
|
6670
6726
|
|
|
6671
6727
|
|
|
6672
|
-
tmpl
|
|
6673
|
-
|
|
6674
|
-
v8::FunctionTemplate::New(isolate, &TexParameterf)
|
|
6675
|
-
);
|
|
6728
|
+
SetFastMethod(isolate, tmpl, "texParameterf", TexParameterf,
|
|
6729
|
+
&fast_tex_parameterf_, v8::Local<v8::Value>());
|
|
6676
6730
|
|
|
6677
6731
|
|
|
6678
|
-
tmpl
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
);
|
|
6732
|
+
SetFastMethod(isolate, tmpl, "texParameteri", TexParameteri,
|
|
6733
|
+
&fast_tex_parameteri_, v8::Local<v8::Value>());
|
|
6734
|
+
|
|
6682
6735
|
|
|
6683
6736
|
tmpl->Set(
|
|
6684
6737
|
ConvertToV8String(isolate, "texSubImage2D"),
|